Lines Matching refs:bitmap
25 void extractImageData(const SkBitmap& bitmap, const SkIRect& srcRect,
32 bitmap.lockPixels();
33 switch (bitmap.getConfig()) {
39 memcpy(dst, bitmap.getAddr8(srcRect.fLeft, y), rowBytes);
49 (const SkBitmap::RLEPixels*)bitmap.getPixels();
66 uint16_t* src = bitmap.getAddr16(0, y);
108 uint16_t* src = bitmap.getAddr16(0, y);
126 uint32_t* src = bitmap.getAddr32(0, y);
155 uint8_t* src = bitmap.getAddr1(0, y);
195 uint8_t* src = bitmap.getAddr8(0, y);
212 bitmap.unlockPixels();
252 SkPDFImage* SkPDFImage::CreateImage(const SkBitmap& bitmap,
255 if (bitmap.getConfig() == SkBitmap::kNo_Config) {
261 extractImageData(bitmap, srcRect, &imageData, &alphaData);
270 new SkPDFImage(imageData, bitmap, srcRect, false, paint);
273 image->addSMask(new SkPDFImage(alphaData, bitmap, srcRect, true,
294 SkPDFImage::SkPDFImage(SkStream* imageData, const SkBitmap& bitmap,
298 SkBitmap::Config config = bitmap.getConfig();
322 makeIndexedColorSpace(bitmap.getColorTable()))->unref();