Lines Matching full:reporter
21 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src,
23 ERRORF(reporter, "src %s opaque:%d, dst %s opaque:%d",
33 static void test_isOpaque(skiatest::Reporter* reporter,
39 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType));
40 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
42 report_opaqueness(reporter, srcPremul, dst);
46 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType));
47 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
49 report_opaqueness(reporter, srcOpaque, dst);
163 skiatest::Reporter* reporter){
174 ERRORF(reporter, "%s [colortype = %s]", msg,
216 DEF_TEST(BitmapCopy_extractSubset, reporter) {
230 REPORTER_ASSERT(reporter, subset.width() == W);
231 REPORTER_ASSERT(reporter, subset.height() == 2);
232 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
233 REPORTER_ASSERT(reporter, subset.isVolatile() == true);
242 REPORTER_ASSERT(reporter, gPairs[i].fColorType != gPairs[j].fColorType);
248 REPORTER_ASSERT(reporter, copy.getGenerationID() != subset.getGenerationID());
250 REPORTER_ASSERT(reporter, copy.width() == W);
251 REPORTER_ASSERT(reporter, copy.height() == 2);
258 REPORTER_ASSERT(reporter, (copy.getColorTable() != NULL) == hasCT);
266 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
267 REPORTER_ASSERT(reporter, subset.isVolatile() == false);
272 DEF_TEST(BitmapCopy, reporter) {
287 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. expected %s "
294 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. returned %s "
300 REPORTER_ASSERT(reporter, srcPremul.width() == dst.width());
301 REPORTER_ASSERT(reporter, srcPremul.height() == dst.height());
302 REPORTER_ASSERT(reporter, dst.colorType() == gPairs[j].fColorType);
303 test_isOpaque(reporter, srcOpaque, srcPremul, dst.colorType());
307 REPORTER_ASSERT(reporter, srcPremul.readyToDraw());
308 REPORTER_ASSERT(reporter, dst.readyToDraw());
311 REPORTER_ASSERT(reporter, srcP != dstP);
312 REPORTER_ASSERT(reporter, !memcmp(srcP, dstP,
314 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() == dst.getGenerationID());
316 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() != dst.getGenerationID());
320 REPORTER_ASSERT(reporter, dst.colorType() == kUnknown_SkColorType);
321 REPORTER_ASSERT(reporter, dst.width() == 0);
322 REPORTER_ASSERT(reporter, dst.height() == 0);
343 ERRORF(reporter, "getSafeSize64() negative: %s",
376 ERRORF(reporter, "computeSafeSize64() wrong size: %s",
459 REPORTER_ASSERT(reporter,
466 reporter);
476 REPORTER_ASSERT(reporter,
481 "copyPixelsTo(buf, bufSize)", reporter);
488 REPORTER_ASSERT(reporter,
493 "copyPixelsTo(buf, bufSize, rowBytes+1)", reporter);
501 REPORTER_ASSERT(reporter,
506 "copyPixelsTo(buf, bufSize, rowBytes()-1)", reporter);
515 REPORTER_ASSERT(reporter,
526 REPORTER_ASSERT(reporter,
531 reporter);
536 REPORTER_ASSERT(reporter,