Lines Matching refs:Span
25 static SkString dump(SkScalar cut, Span prefix, Span remainder) {
38 Span span, SkScalar dx, SkScalar cut, SkPoint start, SkScalar len, int count) {
40 std::tie(originalStart, originalLen, originalCount) = span;
42 Span prefix = span.breakAt(cut, dx);
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));
63 if (!span.isEmpty()) {
67 std::tie(remainderStart, remainderLen, remainderCount) = span;
68 // Remainder span
70 dump(cut, prefix, span));
73 dump(cut, prefix, span));
76 dump(cut, prefix, span));
84 Span span{start, 9.0f, 10};
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);
96 Span span{start, -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);
113 XTiler& xTiler, YTiler& yTiler, Span span, skiatest::Reporter* reporter) {
114 Span originalSpan = span;
132 void pointSpan(Span span) {
133 span_fallback(span, this);
147 std::tie(start, length, count) = span;
170 Span yAdjustedSpan{{x, y}, length, count};
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",
193 "Mismatch at %d - points: %f, %f - span: %f, %f",
216 Span span{
218 if (!compare_tiler_case(xTiler, yTiler, span, reporter)) {
241 Span span{SkPoint::Make(0, -5), 1.0f, 2};
242 compare_tiler_case<ClampStrategy>(tiler, span, reporter);
251 Span span{SkPoint::Make(-5, -5), 20 * 2.1f, 100};
252 compare_tiler_case<RepeatStrategy>(tiler, span, reporter);