Home | History | Annotate | Download | only in gm

Lines Matching defs:bm

12 static void make_bm(SkBitmap* bm) {
13 bm->setConfig(SkBitmap::kARGB_8888_Config, 100, 100);
14 bm->allocPixels();
15 bm->eraseColor(SK_ColorBLUE);
17 SkCanvas canvas(*bm);
24 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
31 SkIntToScalar(bm.width()),
32 SkIntToScalar(bm.height()));
41 canvas->drawSprite(bm, dx, dy, &paint);
46 canvas->translate(SkIntToScalar(bm.width() + 20), 0);
52 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint);
75 SkBitmap bm;
76 make_bm(&bm);
84 draw_2_bitmaps(canvas, bm, false, dx, dy);
85 dy += bm.height() + 20;
86 draw_2_bitmaps(canvas, bm, false, dx, dy, filter);
87 dy += bm.height() + 20;
88 draw_2_bitmaps(canvas, bm, true, dx, dy);
89 dy += bm.height() + 20;
90 draw_2_bitmaps(canvas, bm, true, dx, dy, filter);