Lines Matching refs:bm
15 static void create_gradient(SkBitmap* bm) {
16 SkASSERT(1 == bm->width());
17 const int height = bm->height();
22 SkAutoLockPixels lock(*bm);
24 *bm->getAddr32(0, y) = SkColorSetRGB(0, 0, (U8CPU) blue);
49 SkBitmap bm;
51 bm.allocN32Pixels(kWidth, kHeight, true);
52 bm.eraseColor(SK_ColorWHITE);
54 create_gradient(&bm);
56 SkShader* s = SkShader::CreateBitmapShader(bm, xTile, yTile);