Lines Matching defs:bitmap
49 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info);
50 delete bitmap;
124 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
125 if (NULL == bitmap) {
129 const int w = bitmap->width();
130 const int h = bitmap->height();
131 const size_t s = bitmap->getSize();
133 // our provider "owns" the bitmap*, and will take care of deleting it
134 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
136 bitmap->lockPixels();
137 CGDataProviderRef dataRef = CGDataProviderCreateWithData(bitmap, bitmap->getPixels(), s,
147 bitmap->bytesPerPixel() * 8,
148 bitmap->rowBytes(), colorSpace, info, dataRef,
216 SkBitmap bitmap;
217 if (!bitmap.tryAllocN32Pixels(w, h)) {
220 bitmap.eraseColor(SK_ColorWHITE);
224 getBitmapInfo(bitmap, &bitsPerComponent, &info, NULL);
227 CGContextRef ctx = CGBitmapContextCreate(bitmap.getPixels(), w, h,
228 bitsPerComponent, bitmap.rowBytes(),
237 output->swap(bitmap);