Lines Matching defs:reporter
58 static void test_image(const sk_sp<SkSpecialImage>& img, skiatest::Reporter* reporter,
61 REPORTER_ASSERT(reporter, kPad == subset.left());
62 REPORTER_ASSERT(reporter, kPad == subset.top());
63 REPORTER_ASSERT(reporter, kSmallerSize == subset.width());
64 REPORTER_ASSERT(reporter, kSmallerSize == subset.height());
68 REPORTER_ASSERT(reporter, isGPUBacked == img->isTextureBacked());
74 REPORTER_ASSERT(reporter, view.asTextureProxy());
81 REPORTER_ASSERT(reporter, img->getROPixels(&bitmap));
82 REPORTER_ASSERT(reporter, kSmallerSize == bitmap.width());
83 REPORTER_ASSERT(reporter, kSmallerSize == bitmap.height());
104 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1));
105 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad));
106 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kSmallerSize+kPad-1,
108 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kSmallerSize+kPad,
118 REPORTER_ASSERT(reporter, tightImg->width() == subset.width());
119 REPORTER_ASSERT(reporter, tightImg->height() == subset.height());
120 REPORTER_ASSERT(reporter, isGPUBacked == tightImg->isTextureBacked());
122 REPORTER_ASSERT(reporter, isGPUBacked != !!tightImg->peekPixels(&tmpPixmap));
128 REPORTER_ASSERT(reporter, tightSurf->width() == subset.width());
129 REPORTER_ASSERT(reporter, tightSurf->height() == subset.height());
132 REPORTER_ASSERT(reporter, isGPUBacked == backendTex.isValid());
134 REPORTER_ASSERT(reporter, isGPUBacked != !!tightSurf->peekPixels(&tmpPixmap));
138 DEF_TEST(SpecialImage_Raster, reporter) {
150 test_image(subSImg1, reporter, nullptr, false);
155 test_image(subSImg2, reporter, nullptr, false);
159 static void test_specialimage_image(skiatest::Reporter* reporter) {
175 test_image(subSImg1, reporter, nullptr, false);
180 test_image(subSImg2, reporter, nullptr, false);
184 DEF_TEST(SpecialImage_Image_Legacy, reporter) {
185 test_specialimage_image(reporter);
188 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SpecialImage_Gpu, reporter, ctxInfo) {
216 test_image(subSImg1, reporter, context, true);
221 test_image(subSImg2, reporter, context, true);