Lines Matching defs:bitmap
47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info);
48 delete bitmap;
122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info);
123 if (NULL == bitmap) {
127 const int w = bitmap->width();
128 const int h = bitmap->height();
129 const size_t s = bitmap->getSize();
131 // our provider "owns" the bitmap*, and will take care of deleting it
132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
134 bitmap->lockPixels();
135 CGDataProviderRef dataRef = CGDataProviderCreateWithData(bitmap, bitmap->getPixels(), s,
145 bitmap->bytesPerPixel() * 8,
146 bitmap->rowBytes(), colorSpace, info, dataRef,
223 SkBitmap bitmap;
224 if (!bitmap.allocPixels(SkImageInfo::MakeN32Premul(w, h))) {
227 bitmap.eraseColor(SK_ColorWHITE);
231 getBitmapInfo(bitmap, &bitsPerComponent, &info, NULL);
234 CGContextRef ctx = CGBitmapContextCreate(bitmap.getPixels(), w, h,
235 bitsPerComponent, bitmap.rowBytes(),
244 output->swap(bitmap);