Lines Matching refs:bm

38     SkBitmap bm;  in test_faulty_pixelref()  local
40 bm.setInfo(info); in test_faulty_pixelref()
41 bm.setPixelRef(new FailurePixelRef(info), 0, 0)->unref(); in test_faulty_pixelref()
58 canvas->drawBitmap(bm, 0, 0, &paint); in test_faulty_pixelref()
148 const SkBitmap& bm, bool shouldBeDrawn) { in assert_ifDrawnTo() argument
149 for (int y = 0; y < bm.height(); ++y) { in assert_ifDrawnTo()
150 for (int x = 0; x < bm.width(); ++x) { in assert_ifDrawnTo()
152 if (SK_ColorTRANSPARENT == *bm.getAddr32(x, y)) { in assert_ifDrawnTo()
158 if (SK_ColorTRANSPARENT != *bm.getAddr32(x, y)) { in assert_ifDrawnTo()
185 SkBitmap bm; in test_wacky_bitmapshader() local
186 if (bm.tryAllocN32Pixels(width, height)) { in test_wacky_bitmapshader()
189 bm.eraseColor(SK_ColorRED); in test_wacky_bitmapshader()
198 SkShader* s = SkShader::CreateBitmapShader(bm, SkShader::kRepeat_TileMode, in test_wacky_bitmapshader()
250 SkBitmap bm; in test_nan_antihair() local
251 bm.allocN32Pixels(20, 20); in test_nan_antihair()
253 SkCanvas canvas(bm); in test_nan_antihair()
270 static bool check_for_all_zeros(const SkBitmap& bm) { in check_for_all_zeros() argument
271 SkAutoLockPixels alp(bm); in check_for_all_zeros()
273 size_t count = bm.width() * bm.bytesPerPixel(); in check_for_all_zeros()
274 for (int y = 0; y < bm.height(); y++) { in check_for_all_zeros()
275 const uint8_t* ptr = reinterpret_cast<const uint8_t*>(bm.getAddr(0, y)); in check_for_all_zeros()
288 static void create(SkBitmap* bm, SkColor color) { in create() argument
289 bm->allocN32Pixels(gWidth, gHeight); in create()
290 bm->eraseColor(color); in create()