Lines Matching refs:Reporter
21 DEF_TEST(LBPBilerpEdge, reporter) {
37 skiatest::Reporter* reporter,
47 REPORTER_ASSERT_MESSAGE(reporter, prefixStart == start, dump(cut, prefix, span));
48 REPORTER_ASSERT_MESSAGE(reporter, prefixLen == len, dump(cut, prefix, span));
49 REPORTER_ASSERT_MESSAGE(reporter, prefixCount == count, dump(cut, prefix, span));
69 REPORTER_ASSERT_MESSAGE(reporter, expectedRemainderStart == remainderStart,
71 REPORTER_ASSERT_MESSAGE(reporter,
74 REPORTER_ASSERT_MESSAGE(reporter,
80 DEF_TEST(LBPSpanOps, reporter) {
85 check_span_result(reporter, span, dx, 0.0f, start, 4.0f, 5);
86 check_span_result(reporter, span, dx, -6.0f, SkPoint::Make(0, 0), 0.0f, 0);
87 check_span_result(reporter, span, dx, -5.0f, SkPoint::Make(0, 0), 0.0f, 0);
88 check_span_result(reporter, span, dx, -4.0f, SkPoint::Make(-5, -5), 0.0f, 1);
89 check_span_result(reporter, span, dx, 4.0f, SkPoint::Make(-5, -5), 8.0f, 9);
90 check_span_result(reporter, span, dx, 5.0f, SkPoint::Make(-5, -5), 9.0f, 10);
91 check_span_result(reporter, span, dx, 6.0f, SkPoint::Make(-5, -5), 9.0f, 10);
97 check_span_result(reporter, span, dx, 0.0f, start, -5.0f, 6);
98 check_span_result(reporter, span, dx, -6.0f, SkPoint::Make(5, 5), -9.0f, 10);
99 check_span_result(reporter, span, dx, -5.0f, SkPoint::Make(5, 5), -9.0f, 10);
100 check_span_result(reporter, span, dx, -4.0f, SkPoint::Make(5, 5), -9.0f, 10);
101 check_span_result(reporter, span, dx, 4.0f, SkPoint::Make(5, 5), -1.0f, 2);
102 check_span_result(reporter, span, dx, 5.0f, SkPoint::Make(5, 5), 0.0f, 1);
103 check_span_result(reporter, span, dx, 6.0f, SkPoint::Make(0, 0), 0.0f, 0);
107 DEF_TEST(LBPBilerpSpanOps, reporter) {
113 XTiler& xTiler, YTiler& yTiler, Span span, skiatest::Reporter* reporter) {
180 ERRORF(reporter, "Span: {%f, %f}, %f, %d", start.fX, start.fY, length, count);
181 ERRORF(reporter, "Size points: %d, size span: %d",
184 ERRORF(reporter, "Size points: %d, size span: %d",
187 ERRORF(reporter,
192 ERRORF(reporter,
204 static bool compare_tiler_spans(int width, int height, skiatest::Reporter* reporter) {
207 INFOF(reporter, "w: %d, h: %d \n", width, height);
218 if (!compare_tiler_case(xTiler, yTiler, span, reporter)) {
229 static void test_tiler(skiatest::Reporter* reporter) {
233 if (!compare_tiler_spans<XTiler, YTiler>(width, height, reporter)) { return; }
238 DEF_TEST(LBPStrategyClampTile, reporter) {
242 compare_tiler_case<ClampStrategy>(tiler, span, reporter);
244 test_tiler<XClampStrategy, YClampStrategy>(reporter);
248 DEF_TEST(LBPStrategyRepeatTile, reporter) {
252 compare_tiler_case<RepeatStrategy>(tiler, span, reporter);
254 test_tiler<XRepeatStrategy, YRepeatStrategy>(reporter);