Lines Matching refs:bm
62 SkBitmap bm; in make_bitmap() local
63 bm.allocPixels(SkImageInfo::Make(256, 32, kIndex_8_SkColorType, kPremul_SkAlphaType), in make_bitmap()
67 bm.lockPixels(); in make_bitmap()
68 for (int y = 0; y < bm.height(); y++) { in make_bitmap()
69 uint8_t* p = bm.getAddr8(0, y); in make_bitmap()
74 bm.unlockPixels(); in make_bitmap()
75 return bm; in make_bitmap()
101 static void setBitmapOpaque(SkBitmap* bm, bool isOpaque) { in setBitmapOpaque() argument
102 SkAutoLockPixels alp(*bm); // needed for ctable in setBitmapOpaque()
103 bm->setAlphaType(isOpaque ? kOpaque_SkAlphaType : kPremul_SkAlphaType); in setBitmapOpaque()
106 static void draw2(SkCanvas* canvas, const SkBitmap& bm) { in draw2() argument
108 SkBitmap bitmap(bm); in draw2()
114 canvas->drawBitmap(bitmap, 0, SkIntToScalar(bm.height() + 10), &paint); in draw2()
117 SkScalar x = SkIntToScalar(bm.width() + 10); in draw2()
121 canvas->drawBitmap(bitmap, x, SkIntToScalar(bm.height() + 10), &paint); in draw2()