Lines Matching defs:bitmap
123 static void fill_dst_bmp_with_init_data(SkBitmap* bitmap) {
124 int w = bitmap->width();
125 int h = bitmap->height();
126 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels());
130 if (kAlpha_8_SkColorType == bitmap->colorType()) {
131 uint8_t* alpha = reinterpret_cast<uint8_t*>(pixels + y * bitmap->rowBytes() + x);
134 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
161 // checks the bitmap contains correct pixels after the readPixels
162 // if the bitmap was prefilled with pixels it checks that these weren't
164 static bool check_read(skiatest::Reporter* reporter, const SkBitmap& bitmap, int x, int y,
167 SkAlphaType bmpAT = bitmap.alphaType();
168 SkColorType bmpCT = bitmap.colorType();
169 SkASSERT(!bitmap.isNull());
172 int bw = bitmap.width();
173 int bh = bitmap.height();
185 const uint8_t* alpha = bitmap.getAddr8(bx, by);
216 const uint32_t* pixel = bitmap.getAddr32(bx, by);
252 static void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, TightRowBytes tightRB,
259 bitmap->allocPixels(info, rowBytes);
337 // if the bitmap has pixels allocated before the readPixels,
363 // failed then our bitmap should still not have pixels