Lines Matching refs:bm
22 SkBitmap bm;
23 bm.allocPixels(SkImageInfo::MakeA8(w, h));
24 bm.eraseARGB(10, 0, 0 , 0);
25 for (int y = 0; y < bm.height(); ++y) {
26 for (int x = y; x < bm.width(); ++x) {
27 *bm.getAddr8(x, y) = 0xFF;
30 bm.setImmutable();
31 return bm;
67 SkBitmap bm;
68 bm.allocPixels(SkImageInfo::MakeA8(64, 64));
69 for (int y = 0; y < bm.height(); ++y) {
70 for (int x = 0; x < bm.width(); ++x) {
71 *bm.getAddr8(x, y) = y * 4;
74 bm.setImmutable();
75 auto image = bm.asImage();