Lines Matching refs:bm
17 static void drawIntoBitmap(const SkBitmap& bm) { in drawIntoBitmap() argument
18 const int w = bm.width(); in drawIntoBitmap()
19 const int h = bm.height(); in drawIntoBitmap()
21 SkCanvas canvas(bm); in drawIntoBitmap()
105 SkBitmap bm; in BitmapBench() local
108 bm.setConfig(SkBitmap::kARGB_8888_Config, w, h); in BitmapBench()
110 bm.setConfig(c, w, h); in BitmapBench()
112 bm.allocPixels(); in BitmapBench()
113 bm.eraseColor(isOpaque ? SK_ColorBLACK : 0); in BitmapBench()
115 drawIntoBitmap(bm); in BitmapBench()
118 convertToIndex666(bm, &fBitmap); in BitmapBench()
120 fBitmap = bm; in BitmapBench()