Home | History | Annotate | Download | only in tests

Lines Matching defs:bitmap

64         // CreateBitmapShader is too smart for us; an empty (or 1x1) bitmap shader
65 // gets optimized into a non-bitmap form, so we create a 2x2 bitmap here.
66 SkBitmap bitmap;
67 bitmap.allocPixels(SkImageInfo::MakeN32Premul(2, 2));
68 bitmap.eraseColor(SK_ColorBLUE);
69 *(bitmap.getAddr32(0, 0)) = SK_ColorGREEN;
70 SkShader* shader = SkShader::CreateBitmapShader(bitmap, SkShader::kClamp_TileMode,
820 // This bitmap has a width and height but no pixels. As a result, attempting to record it will
834 static SkData* serialized_picture_from_bitmap(const SkBitmap& bitmap) {
836 SkCanvas* canvas = recorder.beginRecording(SkIntToScalar(bitmap.width()),
837 SkIntToScalar(bitmap.height()));
838 canvas->drawBitmap(bitmap, 0, 0);
864 // Create a bitmap that will be encoded.
884 // providing a function to decode the bitmap.
1157 static void draw_bitmaps(const SkBitmap bitmap, SkCanvas* canvas) {
1163 canvas->drawBitmap(bitmap, 0.0f, 0.0f, &paint);
1164 canvas->drawBitmapRectToRect(bitmap, &rect, rect, &paint, SkCanvas::kNone_DrawBitmapRectFlag);
1165 canvas->drawBitmapNine(bitmap, irect, rect, &paint);
1166 canvas->drawSprite(bitmap, 1, 1);
1203 // When the bug is present, the red square (the second bitmap)