Lines Matching refs:bm
12 static void make_bm(SkBitmap* bm) { in make_bm() argument
13 bm->allocN32Pixels(100, 100); in make_bm()
14 bm->eraseColor(SK_ColorBLUE); in make_bm()
16 SkCanvas canvas(*bm); in make_bm()
23 static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip, in draw_2_bitmaps() argument
30 SkIntToScalar(bm.width()), in draw_2_bitmaps()
31 SkIntToScalar(bm.height())); in draw_2_bitmaps()
40 canvas->drawSprite(bm, dx, dy, &paint); in draw_2_bitmaps()
45 canvas->translate(SkIntToScalar(bm.width() + 20), 0); in draw_2_bitmaps()
51 canvas->drawBitmap(bm, SkIntToScalar(dx), SkIntToScalar(dy), &paint); in draw_2_bitmaps()
75 SkBitmap bm; in onDraw() local
76 make_bm(&bm); in onDraw()
84 draw_2_bitmaps(canvas, bm, false, dx, dy); in onDraw()
85 dy += bm.height() + 20; in onDraw()
86 draw_2_bitmaps(canvas, bm, false, dx, dy, filter); in onDraw()
87 dy += bm.height() + 20; in onDraw()
88 draw_2_bitmaps(canvas, bm, true, dx, dy); in onDraw()
89 dy += bm.height() + 20; in onDraw()
90 draw_2_bitmaps(canvas, bm, true, dx, dy, filter); in onDraw()