Lines Matching defs:bitmap
53 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info);
54 delete bitmap;
128 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
129 if (nullptr == bitmap) {
133 const int w = bitmap->width();
134 const int h = bitmap->height();
135 const size_t s = bitmap->getSize();
137 // our provider "owns" the bitmap*, and will take care of deleting it
138 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
140 bitmap->lockPixels();
141 CGDataProviderRef dataRef = CGDataProviderCreateWithData(bitmap, bitmap->getPixels(), s,
151 bitmap->bytesPerPixel() * 8,
152 bitmap->rowBytes(), colorSpace, info, dataRef,
220 SkBitmap bitmap;
221 if (!bitmap.tryAllocN32Pixels(w, h)) {
224 bitmap.eraseColor(SK_ColorWHITE);
228 getBitmapInfo(bitmap, &bitsPerComponent, &info, nullptr);
231 CGContextRef ctx = CGBitmapContextCreate(bitmap.getPixels(), w, h,
232 bitsPerComponent, bitmap.rowBytes(),
241 output->swap(bitmap);