Lines Matching refs:Reporter
22 * skiatest::Reporter* reporter,
27 * REPORTER_ASSERT_MESSAGE(reporter, (...), \
83 static void test_clipVisitor(skiatest::Reporter* reporter, SkCanvas* canvas) {
93 REPORTER_ASSERT(reporter, c.getTotalClip() == canvas->getTotalClip());
159 virtual void draw(SkCanvas*, skiatest::Reporter*) = 0;
243 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \
244 FUNCTION (canvas, reporter, this); \
254 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \
255 FUNCTION (canvas, reporter, this); \
262 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter*, \
269 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter* reporter, \
271 REPORTER_ASSERT_MESSAGE(reporter, canvas-> CALL , \
341 skiatest::Reporter* reporter,
348 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
350 REPORTER_ASSERT_MESSAGE(reporter, canvas->getTotalMatrix().isIdentity(),
352 REPORTER_ASSERT_MESSAGE(reporter, canvas->getTotalClip() == kTestRegion,
358 skiatest::Reporter* reporter,
365 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
367 REPORTER_ASSERT_MESSAGE(reporter, !canvas->getTotalMatrix().isIdentity(),
369 REPORTER_ASSERT_MESSAGE(reporter, canvas->getTotalClip() != kTestRegion,
375 skiatest::Reporter* reporter,
382 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
384 REPORTER_ASSERT_MESSAGE(reporter, canvas->getTotalMatrix().isIdentity(),
386 REPORTER_ASSERT_MESSAGE(reporter
392 skiatest::Reporter* reporter,
397 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
403 skiatest::Reporter* reporter,
408 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
414 skiatest::Reporter* reporter,
419 REPORTER_ASSERT_MESSAGE(reporter, canvas->getSaveCount() == saveCount,
425 skiatest::Reporter*,
439 skiatest::Reporter*,
460 skiatest::Reporter*,
478 skiatest::Reporter*,
491 skiatest::Reporter* reporter,
495 REPORTER_ASSERT_MESSAGE(reporter, baseSaveCount == n, testStep->assertMessage());
496 REPORTER_ASSERT_MESSAGE(reporter, baseSaveCount + 1 == canvas->getSaveCount(),
500 REPORTER_ASSERT_MESSAGE(reporter, baseSaveCount + 3 == canvas->getSaveCount(),
503 REPORTER_ASSERT_MESSAGE(reporter, baseSaveCount + 1 == canvas->getSaveCount(),
508 REPORTER_ASSERT_MESSAGE(reporter, 1 == canvas->getSaveCount(),
514 skiatest::Reporter* reporter,
516 REPORTER_ASSERT_MESSAGE(reporter, !canvas->isDrawingToLayer(),
519 REPORTER_ASSERT_MESSAGE(reporter, !canvas->isDrawingToLayer(),
527 REPORTER_ASSERT_MESSAGE(reporter, canvas->isDrawingToLayer(),
530 REPORTER_ASSERT_MESSAGE(reporter, !canvas->isDrawingToLayer(),
535 REPORTER_ASSERT_MESSAGE(reporter, canvas->isDrawingToLayer(),
538 REPORTER_ASSERT_MESSAGE(reporter, canvas->isDrawingToLayer(),
542 REPORTER_ASSERT_MESSAGE(reporter, !canvas->isDrawingToLayer(),
548 skiatest::Reporter*,
570 skiatest::Reporter*,
590 static void AssertCanvasStatesEqual(skiatest::Reporter* reporter,
594 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getDeviceSize() ==
596 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getSaveCount() ==
598 REPORTER_ASSERT_MESSAGE(reporter, canvas1->isDrawingToLayer() ==
602 REPORTER_ASSERT_MESSAGE(reporter,
605 REPORTER_ASSERT_MESSAGE(reporter, bounds1 == bounds2,
608 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getDrawFilter() ==
611 REPORTER_ASSERT_MESSAGE(reporter,
615 REPORTER_ASSERT_MESSAGE(reporter, deviceBounds1 == deviceBounds2,
617 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getBounder() ==
619 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getTotalMatrix() ==
621 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getClipType() ==
623 REPORTER_ASSERT_MESSAGE(reporter, canvas1->getTotalClip() ==
635 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.matrix() ==
637 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.clip() ==
639 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.paint() ==
641 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.x() ==
643 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.y() ==
648 REPORTER_ASSERT_MESSAGE(reporter, layerIter1.done(),
650 REPORTER_ASSERT_MESSAGE(reporter, layerIter2.done(),
666 skiatest::Reporter* reporter,
669 REPORTER_ASSERT_MESSAGE(reporter,
672 REPORTER_ASSERT_MESSAGE(reporter,
676 REPORTER_ASSERT_MESSAGE(reporter,
680 REPORTER_ASSERT_MESSAGE(reporter,
684 REPORTER_ASSERT_MESSAGE(reporter,
688 REPORTER_ASSERT_MESSAGE(reporter,
692 REPORTER_ASSERT_MESSAGE(reporter,
696 REPORTER_ASSERT_MESSAGE(reporter,
704 REPORTER_ASSERT_MESSAGE(reporter,
709 REPORTER_ASSERT_MESSAGE(reporter,
720 static void TestPictureFlattenedObjectReuse(skiatest::Reporter* reporter,
729 testStep->draw(referenceCanvas, reporter);
733 testStep->draw(testCanvas, reporter);
735 testStep->draw(testCanvas, reporter);
743 reporter, testStep);
747 static void TestPdfDevice(skiatest::Reporter* reporter,
753 testStep->draw(&canvas, reporter);
765 skiatest::Reporter* reporter,
774 testStep->draw(deferredCanvas, reporter);
776 AssertCanvasStatesEqual(reporter, deferredCanvas, &referenceCanvas,
788 AssertCanvasStatesEqual(reporter,
799 AssertCanvasStatesEqual(reporter, &deferredCanvas, &referenceCanvas,
807 skiatest::Reporter* reporter,
817 testStep->draw(&proxyCanvas, reporter);
820 AssertCanvasStatesEqual(reporter, &proxyCanvas, &referenceCanvas,
824 AssertCanvasStatesEqual(reporter, &indirectCanvas, &referenceCanvas,
830 skiatest::Reporter* reporter,
850 testStep->draw(&nWayCanvas, reporter);
853 AssertCanvasStatesEqual(reporter, &nWayCanvas, &referenceCanvas,
857 AssertCanvasStatesEqual(reporter, &indirectCanvas1, &referenceCanvas,
860 AssertCanvasStatesEqual(reporter, &indirectCanvas2, &referenceCanvas,
870 static void TestOverrideStateConsistency(skiatest::Reporter* reporter,
877 testStep->draw(&referenceCanvas, reporter);
879 SkDeferredCanvasTester::TestDeferredCanvasStateConsistency(reporter, testStep, referenceCanvas, false);
881 SkDeferredCanvasTester::TestDeferredCanvasStateConsistency(reporter, testStep, referenceCanvas, true);
889 TestProxyCanvasStateConsistency(reporter, testStep, referenceCanvas);
897 TestNWayCanvasStateConsistency(reporter, testStep, referenceCanvas);
901 test_clipVisitor(reporter, &referenceCanvas);
905 DEF_TEST(Canvas, reporter) {
911 TestOverrideStateConsistency(reporter, testStepArray()[testStep]);
912 SkPictureTester::TestPictureFlattenedObjectReuse(reporter,
915 TestPdfDevice(reporter, testStepArray()[testStep]);