Lines Matching defs:reporter
19 DEF_TEST(MipMap, reporter) {
29 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipmap::ComputeLevelCount(width, height));
30 REPORTER_ASSERT(reporter, !mm->extractLevel(SkSize::Make(SK_Scalar1, SK_Scalar1),
32 REPORTER_ASSERT(reporter, !mm->extractLevel(SkSize::Make(SK_Scalar1 * 2, SK_Scalar1 * 2),
44 REPORTER_ASSERT(reporter, level.fPixmap.addr());
45 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0);
46 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0);
47 REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4);
50 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width());
51 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height());
60 skiatest::Reporter* reporter) {
67 REPORTER_ASSERT(reporter, mipLevelCount == expectedMipLevelCount);
68 REPORTER_ASSERT(reporter, mipLevelCount == SkMipmap::ComputeLevelCount(width, height));
71 REPORTER_ASSERT(reporter, mm->getLevel(i, &level));
73 REPORTER_ASSERT(reporter, level.fPixmap.addr());
75 REPORTER_ASSERT(reporter, level.fPixmap.width() == size.width());
76 REPORTER_ASSERT(reporter, level.fPixmap.height() == size.height());
82 REPORTER_ASSERT(reporter, level.fPixmap.width() == currentWidth);
83 REPORTER_ASSERT(reporter, level.fPixmap.height() == currentHeight);
87 DEF_TEST(MipMap_DirectLevelAccess, reporter) {
96 REPORTER_ASSERT(reporter, mm == nullptr);
102 test_mipmap_generation(32, 32, 5, reporter);
107 test_mipmap_generation(1000, 1000, 9, reporter);
116 DEF_TEST(MipMap_ComputeLevelCount, reporter) {
155 REPORTER_ASSERT(reporter, currentTest.fExpectedLevelCount == levelCount);
166 DEF_TEST(MipMap_ComputeLevelSize, reporter) {
203 REPORTER_ASSERT(reporter, currentTest.fExpectedMipMapLevelSize == levelSize);
207 DEF_TEST(MipMap_F16, reporter) {
228 DEF_TEST(image_mip_factory, reporter) {
232 REPORTER_ASSERT(reporter, !img->hasMipmaps());
234 REPORTER_ASSERT(reporter, img.get() != img1.get());
235 REPORTER_ASSERT(reporter, img1->hasMipmaps());
241 REPORTER_ASSERT(reporter, img.get() != img2.get());
242 REPORTER_ASSERT(reporter, img1.get() != img2.get());
243 REPORTER_ASSERT(reporter, img2->hasMipmaps());
248 DEF_TEST(image_mip_mismatch, reporter) {
249 auto check_fails = [reporter](sk_sp<SkImage> img, const SkImageInfo& info) {
254 REPORTER_ASSERT(reporter, img.get() == img2.get());