Lines Matching refs:bm
13 static bool has_green_pixels(const SkBitmap& bm) { in has_green_pixels() argument
14 for (int j = 0; j < bm.height(); ++j) { in has_green_pixels()
15 for (int i = 0; i < bm.width(); ++i) { in has_green_pixels()
16 if (SkColorGetG(bm.getColor(i, j))) { in has_green_pixels()
26 SkBitmap bm; in test_stroke_width_clipping() local
27 bm.allocN32Pixels(100, 10); in test_stroke_width_clipping()
28 bm.eraseColor(SK_ColorTRANSPARENT); in test_stroke_width_clipping()
30 SkCanvas canvas(bm); in test_stroke_width_clipping()
41 REPORTER_ASSERT(reporter, !has_green_pixels(bm)); in test_stroke_width_clipping()
46 REPORTER_ASSERT(reporter, has_green_pixels(bm)); in test_stroke_width_clipping()
50 SkBitmap bm; in test_skbug4406() local
51 bm.allocN32Pixels(10, 10); in test_skbug4406()
52 bm.eraseColor(SK_ColorTRANSPARENT); in test_skbug4406()
54 SkCanvas canvas(bm); in test_skbug4406()
70 REPORTER_ASSERT(reporter, !has_green_pixels(bm)); in test_skbug4406()
84 REPORTER_ASSERT(reporter, has_green_pixels(bm)); in test_skbug4406()