Lines Matching refs:bm
45 SkBitmap bm; in create_bm() local
46 bm.allocN32Pixels(kFullSize, kFullSize, true); in create_bm()
48 SkCanvas temp(bm); in create_bm()
59 return bm; in create_bm()
93 SkBitmap bm; in test_image() local
94 bm.allocN32Pixels(kFullSize, kFullSize, true); in test_image()
96 bool result = canvas->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), 0, 0); in test_image()
100 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1)); in test_image()
101 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad)); in test_image()
102 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kSmallerSize+kPad-1, in test_image()
104 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kSmallerSize+kPad, in test_image()
109 SkBitmap bm = create_bm(); in DEF_TEST() local
113 SkAutoTUnref<SkSpecialImage> img(SkSpecialImage::NewFromRaster(nullptr, subset, bm)); in DEF_TEST()
118 SkBitmap bm = create_bm(); in DEF_TEST() local
120 SkAutoTUnref<SkImage> fullImage(SkImage::NewFromBitmap(bm)); in DEF_TEST()
130 SkBitmap bm = create_bm(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
139 bm.getPixels(), 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()