Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

41 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src,
43 ERRORF(reporter, "src %s opaque:%d, dst %s opaque:%d",
53 static void test_isOpaque(skiatest::Reporter* reporter,
59 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType));
60 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
62 report_opaqueness(reporter, srcPremul, dst);
66 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType));
67 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType);
69 report_opaqueness(reporter, srcOpaque, dst);
183 skiatest::Reporter* reporter){
190 ERRORF(reporter, "%s [colortype = %s]", msg, color_type_name(bm1.colorType()));
237 DEF_TEST(BitmapCopy_extractSubset, reporter) {
251 REPORTER_ASSERT(reporter, subset.width() == W);
252 REPORTER_ASSERT(reporter, subset.height() == 2);
253 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
254 REPORTER_ASSERT(reporter, subset.isVolatile() == true);
263 REPORTER_ASSERT(reporter, kIndex_8_SkColorType == gPairs[i].fColorType ||
270 REPORTER_ASSERT(reporter, copy.getGenerationID() != subset.getGenerationID());
272 REPORTER_ASSERT(reporter, copy.width() == W);
273 REPORTER_ASSERT(reporter, copy.height() == 2);
280 REPORTER_ASSERT(reporter, (copy.getColorTable() != nullptr) == hasCT);
288 REPORTER_ASSERT(reporter, subset.alphaType() == bitmap.alphaType());
289 REPORTER_ASSERT(reporter, subset.isVolatile() == false);
294 DEF_TEST(BitmapCopy, reporter) {
309 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. expected %s "
317 ERRORF(reporter, "SkBitmap::copyTo from %s to %s. returned %s "
324 REPORTER_ASSERT(reporter, srcPremul.width() == dst.width());
325 REPORTER_ASSERT(reporter, srcPremul.height() == dst.height());
326 REPORTER_ASSERT(reporter, dst.colorType() == gPairs[j].fColorType);
327 test_isOpaque(reporter, srcOpaque, srcPremul, dst.colorType());
331 REPORTER_ASSERT(reporter, srcPremul.readyToDraw());
332 REPORTER_ASSERT(reporter, dst.readyToDraw());
335 REPORTER_ASSERT(reporter, srcP != dstP);
336 REPORTER_ASSERT(reporter, !memcmp(srcP, dstP,
338 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() == dst.getGenerationID());
340 REPORTER_ASSERT(reporter, srcPremul.getGenerationID() != dst.getGenerationID());
344 REPORTER_ASSERT(reporter, dst.colorType() == kUnknown_SkColorType);
345 REPORTER_ASSERT(reporter, dst.width() == 0);
346 REPORTER_ASSERT(reporter, dst.height() == 0);
367 ERRORF(reporter, "getSafeSize64() negative: %s",
400 ERRORF(reporter, "computeSafeSize64() wrong size: %s",
485 REPORTER_ASSERT(reporter,
492 reporter);
502 REPORTER_ASSERT(reporter,
507 "copyPixelsTo(buf, bufSize)", reporter);
514 REPORTER_ASSERT(reporter,
519 "copyPixelsTo(buf, bufSize, rowBytes+1)", reporter);
527 REPORTER_ASSERT(reporter,
532 "copyPixelsTo(buf, bufSize, rowBytes()-1)", reporter);
541 REPORTER_ASSERT(reporter,
552 REPORTER_ASSERT(reporter,
557 reporter);
562 REPORTER_ASSERT(reporter,
605 DEF_TEST(BitmapReadPixels, reporter) {
641 REPORTER_ASSERT(reporter, gRec[i].fExpectedSuccess == success);
654 REPORTER_ASSERT(reporter, check_4x4_pixel(dstC, sx, sy));
656 REPORTER_ASSERT(reporter, 0 == dstC);