Lines Matching refs:bm
51 static bool check_bitmap_margin(const SkBitmap& bm, int margin) { in check_bitmap_margin() argument
52 size_t rb = bm.rowBytes(); in check_bitmap_margin()
54 if (!check_zeros(bm.getAddr32(0, i), bm.width(), 1)) { in check_bitmap_margin()
57 int bottom = bm.height() - i - 1; in check_bitmap_margin()
58 if (!check_zeros(bm.getAddr32(0, bottom), bm.width(), 1)) { in check_bitmap_margin()
62 if (!check_zeros(bm.getAddr32(i, 0), bm.height(), SkToInt(rb >> 2))) { in check_bitmap_margin()
65 int right = bm.width() - margin + i; in check_bitmap_margin()
66 if (!check_zeros(bm.getAddr32(right, 0), bm.height(), in check_bitmap_margin()
79 const SkBitmap& bm) { in line_proc() argument
86 if (!check_bitmap_margin(bm, MARGIN)) { in line_proc()
95 const SkBitmap& bm) { in poly_proc() argument
118 const SkBitmap& bm) { in quad_proc() argument
142 const SkBitmap& bm) { in cube_proc() argument
207 SkBitmap bm, bm2; in onDrawContent() local
208 bm.allocN32Pixels(WIDTH + MARGIN*2, HEIGHT + MARGIN*2); in onDrawContent()
210 bm.eraseColor(SK_ColorTRANSPARENT); in onDrawContent()
213 bm.getAddr32(MARGIN, MARGIN), bm.rowBytes()); in onDrawContent()
221 gProcs[fProcIndex].fProc(&c2, paint, bm); in onDrawContent()