Lines Matching refs:bm
18 SkBitmap bm;
19 bm.setInfo(info);
20 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
21 bm.allocPixels();
22 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
23 bm.reset();
24 bm.allocPixels(info);
25 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
27 bm.setInfo(info, explicitRowBytes);
28 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
29 bm.allocPixels();
30 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
31 bm.reset();
32 bm.allocPixels(info, explicitRowBytes);
33 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
35 bm.reset();
36 bm.setInfo(info, 0);
37 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 bm.reset();
39 bm.allocPixels(info, 0);
40 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
42 bm.reset();
43 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit
45 REPORTER_ASSERT(reporter, bm.isNull());
49 SkBitmap bm;
53 REPORTER_ASSERT(reporter, bm.setInfo(info));
54 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType)));
62 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType)));
72 SkBitmap bm;
73 bool setConf = bm.setInfo(SkImageInfo::MakeN32Premul(width, height));
76 bm.allocPixels();
78 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());