Lines Matching full:info
13 const SkImageInfo info = SkImageInfo::MakeN32Premul(10, 10);
28 bm.allocPixels(info);
31 REPORTER_ASSERT(reporter, pmap.info() == bm.info());
41 const SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
44 REPORTER_ASSERT(reporter, !bm.tryAllocPixels(info));
46 SkPixelRef* pr = SkMallocPixelRef::NewAllocate(info, info.minRowBytes(), nullptr);
53 const SkImageInfo info = SkImageInfo::MakeN32Premul(width, height);
54 const size_t explicitRowBytes = info.minRowBytes() + 24;
57 bm.setInfo(info);
58 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
60 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
62 bm.allocPixels(info);
63 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
65 bm.setInfo(info, explicitRowBytes);
70 bm.allocPixels(info, explicitRowBytes);
74 bm.setInfo(info, 0);
75 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
77 bm.allocPixels(info, 0);
78 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
81 bool success = bm.setInfo(info, info.minRowBytes() - 1); // invalid for 32bit
90 SkImageInfo info = SkImageInfo::MakeA8(width, 1);
91 REPORTER_ASSERT(reporter, bm.setInfo(info));
92 REPORTER_ASSERT(reporter, bm.setInfo(info.makeColorType(kRGB_565_SkColorType)));
100 REPORTER_ASSERT(reporter, !bm.setInfo(info.makeColorType(kN32_SkColorType)));