Lines Matching refs:bm
18 SkBitmap bm; in test_bigalloc() local
19 REPORTER_ASSERT(reporter, !bm.tryAllocPixels(info)); in test_bigalloc()
31 SkBitmap bm; in test_allocpixels() local
32 bm.setInfo(info); in test_allocpixels()
33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
34 bm.allocPixels(); in test_allocpixels()
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
36 bm.reset(); in test_allocpixels()
37 bm.allocPixels(info); in test_allocpixels()
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
40 bm.setInfo(info, explicitRowBytes); in test_allocpixels()
41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
42 bm.allocPixels(); in test_allocpixels()
43 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
44 bm.reset(); in test_allocpixels()
45 bm.allocPixels(info, explicitRowBytes); in test_allocpixels()
46 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes()); in test_allocpixels()
48 bm.reset(); in test_allocpixels()
49 bm.setInfo(info, 0); in test_allocpixels()
50 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
51 bm.reset(); in test_allocpixels()
52 bm.allocPixels(info, 0); in test_allocpixels()
53 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes()); in test_allocpixels()
55 bm.reset(); in test_allocpixels()
56 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit in test_allocpixels()
58 REPORTER_ASSERT(reporter, bm.isNull()); in test_allocpixels()
62 SkBitmap bm; in test_bigwidth() local
66 REPORTER_ASSERT(reporter, bm.setInfo(info)); in test_bigwidth()
67 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType))); in test_bigwidth()
75 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType))); in test_bigwidth()
85 SkBitmap bm; in DEF_TEST() local
86 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height)); in DEF_TEST()
89 bm.allocPixels(); in DEF_TEST()
91 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty()); in DEF_TEST()