Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

38 static void test_frontToBack(skiatest::Reporter* reporter) {
57 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
58 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
60 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
61 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
65 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
66 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
68 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
69 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
72 REPORTER_ASSERT(reporter, !looper->next(&canvas, &paint));
75 static void test_backToFront(skiatest::Reporter* reporter) {
94 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
95 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
97 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
98 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
102 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
103 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
105 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
106 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
109 REPORTER_ASSERT(reporter, !looper->next(&canvas, &paint));
112 static void test_mixed(skiatest::Reporter* reporter) {
131 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
132 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
134 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
135 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY());
139 REPORTER_ASSERT(reporter, looper->next(&canvas, &paint));
140 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
142 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
143 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
146 REPORTER_ASSERT(reporter, !looper->next(&canvas, &paint));
149 DEF_TEST(LayerDrawLooper, reporter) {
150 test_frontToBack(reporter);
151 test_backToFront(reporter);
152 test_mixed(reporter);