Lines Matching refs:Reporter
22 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src,
24 ERRORF(reporter, "src %s opaque:%d, dst %s opaque:%d",
34 static void test_isOpaque(skiatest::Reporter* reporter,
40 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType));
41 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
43 report_opaqueness(reporter, srcPremul, dst);
47 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType));
48 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
50 report_opaqueness(reporter, srcOpaque, dst);
164 skiatest::Reporter* reporter){
171 ERRORF(reporter, "%s [colortype = %s]", msg, gColorTypeName[bm1.colorType()]);
211 DEF_TEST(BitmapCopy_extractSubset, reporter) {
225 REPORTER_ASSERT(reporter, subset.width() == W);
226 REPORTER_ASSERT(reporter, subset.height() == 2);
227 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
228 REPORTER_ASSERT(reporter, subset.isVolatile() == true);
237 REPORTER_ASSERT(reporter, gPairs[i].fColorType != gPairs[j].fColorType);
243 REPORTER_ASSERT(reporter, copy.getGenerationID() != subset.getGenerationID());
245 REPORTER_ASSERT(reporter, copy.width() == W);
246 REPORTER_ASSERT(reporter, copy.height() == 2);
253 REPORTER_ASSERT(reporter, (copy.getColorTable() != nullptr) == hasCT);
261 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
262 REPORTER_ASSERT(reporter, subset.isVolatile() == false);
267 DEF_TEST(BitmapCopy, reporter) {
282 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. expected %s "
289 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. returned %s "
295 REPORTER_ASSERT(reporter, srcPremul.width() == dst.width());
296 REPORTER_ASSERT(reporter, srcPremul.height() == dst.height());
297 REPORTER_ASSERT(reporter, dst.colorType() == gPairs[j].fColorType);
298 test_isOpaque(reporter, srcOpaque, srcPremul, dst.colorType());
302 REPORTER_ASSERT(reporter, srcPremul.readyToDraw());
303 REPORTER_ASSERT(reporter, dst.readyToDraw());
306 REPORTER_ASSERT(reporter, srcP != dstP);
307 REPORTER_ASSERT(reporter, !memcmp(srcP, dstP,
309 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() == dst.getGenerationID());
311 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() != dst.getGenerationID());
315 REPORTER_ASSERT(reporter, dst.colorType() == kUnknown_SkColorType);
316 REPORTER_ASSERT(reporter, dst.width() == 0);
317 REPORTER_ASSERT(reporter, dst.height() == 0);
338 ERRORF(reporter, "getSafeSize64() negative: %s",
371 ERRORF(reporter, "computeSafeSize64() wrong size: %s",
456 REPORTER_ASSERT(reporter,
463 reporter);
473 REPORTER_ASSERT(reporter,
478 "copyPixelsTo(buf, bufSize)", reporter);
485 REPORTER_ASSERT(reporter,
490 "copyPixelsTo(buf, bufSize, rowBytes+1)", reporter);
498 REPORTER_ASSERT(reporter,
503 "copyPixelsTo(buf, bufSize, rowBytes()-1)", reporter);
512 REPORTER_ASSERT(reporter,
523 REPORTER_ASSERT(reporter,
528 reporter);
533 REPORTER_ASSERT(reporter,
576 DEF_TEST(BitmapReadPixels, reporter) {
612 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success);
625 REPORTER_ASSERT(reporter, check_4x4_pixel(dstC, sx, sy));
627 REPORTER_ASSERT(reporter, 0 == dstC);
642 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(BitmapCopy_Texture, reporter, ctx) {
679 ERRORF(reporter, "Could not wrap texture in bitmap.");
686 ERRORF(reporter, "CopyTo failed.");
689 ERRORF(reporter, "SkBitmap::CopyTo did not respect passed in color type.");
706 ERRORF(reporter, "Expected pixel 0x%08x, found 0x%08x.",