Lines Matching defs:bitmap
16 static void make_bitmap(SkBitmap* bitmap) {
17 bitmap->allocN32Pixels(64, 64);
19 SkCanvas canvas(*bitmap);
61 SkBitmap bitmap;
62 make_bitmap(&bitmap);
71 canvas->drawBitmap(bitmap, 0, 0, &paint);
73 canvas->drawBitmapRectToRect(bitmap, &srcR, dstR, &paint);
75 canvas->drawBitmapRect(bitmap, &src[i], dstR, &paint);
91 static void make_3x3_bitmap(SkBitmap* bitmap) {
101 bitmap->allocN32Pixels(xSize, ySize, true);
102 SkCanvas canvas(*bitmap);
139 SkBitmap bitmap;
140 make_3x3_bitmap(&bitmap);
145 canvas->drawBitmapRectToRect(bitmap, &srcR, dstR, NULL);
153 static void make_big_bitmap(SkBitmap* bitmap) {
159 bitmap->allocN32Pixels(gXSize, gYSize);
164 *bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FFFFFF);
166 *bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FF0000);
254 // This choice of coordinates and matrix land the bottom edge of the clip (and bitmap dst)
256 // If it does, we may see a red-line at the bottom, instead of the bitmap exactly matching