Lines Matching defs:reporter

22 void check_result(skiatest::Reporter* reporter, sk_sp<SkVertices> verts,
25 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.",
30 ERRORF(reporter, "Expected shadow tessellation to generate no vertices but it did.");
32 ERRORF(reporter, "Expected shadow tessellation to generate vertices but it didn't.");
37 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm,
41 check_result(reporter, verts, expectVerts, expectSuccess);
44 check_result(reporter, verts, expectVerts, expectSuccess);
47 check_result(reporter, verts, expectVerts, expectSuccess);
51 check_result(reporter, verts, expectVerts, expectSuccess);
54 check_result(reporter, verts, expectVerts, expectSuccess);
57 check_result(reporter, verts, expectVerts, expectSuccess);
60 DEF_TEST(ShadowUtils, reporter) {
65 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 4}, kDo_ExpectVerts, true);
67 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 4.0e+37f},
73 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 4}, kDont_ExpectVerts, true);
80 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 4}, kDont_ExpectVerts, true);
89 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 9}, kDont_ExpectVerts, true);
106 // tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 9}, kDo_ExpectVerts, true);
115 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 9}, kDont_ExpectVerts, false);
122 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), {0, 0, 9}, kDont_ExpectVerts, false);
125 void check_xformed_bounds(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm) {
141 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
149 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
160 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
168 REPORTER_ASSERT(reporter, bounds.contains(verts->bounds()));
172 void check_bounds(skiatest::Reporter* reporter, const SkPath& path) {
177 check_xformed_bounds(reporter, path, ctm);
179 check_xformed_bounds(reporter, path, ctm);
181 check_xformed_bounds(reporter, path, ctm);
183 check_xformed_bounds(reporter, path, ctm);
187 check_xformed_bounds(reporter, path, ctm);
190 check_xformed_bounds(reporter, path, ctm);
193 check_xformed_bounds(reporter, path, ctm);
197 DEF_TEST(ShadowBounds, reporter) {
200 check_bounds(reporter, path);
204 check_bounds(reporter, path);
208 check_bounds(reporter, path);