Lines Matching defs:bitmap
17 static void make_bitmap(SkBitmap* bitmap) {
18 bitmap->allocN32Pixels(64, 64);
20 SkCanvas canvas(*bitmap);
62 SkBitmap bitmap;
63 make_bitmap(&bitmap);
72 canvas->drawBitmap(bitmap, 0, 0, &paint);
74 canvas->drawBitmapRect(bitmap, srcR, dstR, &paint,
77 canvas->drawBitmapRect(bitmap, src[i], dstR, &paint);
93 static void make_3x3_bitmap(SkBitmap* bitmap) {
103 bitmap->allocN32Pixels(xSize, ySize, true);
104 SkCanvas canvas(*bitmap);
141 SkBitmap bitmap;
142 make_3x3_bitmap(&bitmap);
147 canvas->drawBitmapRect(bitmap, srcR, dstR, nullptr, SkCanvas::kStrict_SrcRectConstraint);
155 static void make_big_bitmap(SkBitmap* bitmap) {
161 bitmap->allocN32Pixels(gXSize, gYSize);
166 *bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FFFFFF);
168 *bitmap->getAddr32(x, y) = SkPreMultiplyColor(0x88FF0000);
250 // This choice of coordinates and matrix land the bottom edge of the clip (and bitmap dst)
252 // If it does, we may see a red-line at the bottom, instead of the bitmap exactly matching