Lines Matching full:bitmap
14 * This GM checks that bitmap pixels are unpremultiplied before being exported
18 * This tests both the ARGB4444 and ARGB8888 bitmap configurations.
25 static void init_bitmap(SkColorType ct, SkBitmap* bitmap) {
26 bitmap->allocPixels(SkImageInfo::Make(SLIDE_SIZE, SLIDE_SIZE, ct,
28 bitmap->eraseColor(SK_ColorWHITE);
32 SkBitmap bitmap;
33 init_bitmap(kN32_SkColorType, &bitmap);
36 uint32_t* dst = bitmap.getAddr32(0, y);
45 return bitmap;
49 SkBitmap bitmap;
50 init_bitmap(kARGB_4444_SkColorType, &bitmap);
53 uint16_t* dst = bitmap.getAddr16(0, y);
62 return bitmap;
66 SkBitmap bitmap;
67 init_bitmap(kN32_SkColorType, &bitmap);
70 uint32_t* dst = bitmap.getAddr32(0, y);
81 return bitmap;
85 SkBitmap bitmap;
86 init_bitmap(kARGB_4444_SkColorType, &bitmap);
89 uint16_t* dst = bitmap.getAddr16(0, y);
100 return bitmap;