From 6c3b9cdcb047afe963c7bcf34834ba2ecccacc33 Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 26 Sep 2016 05:36:58 -0700 Subject: fix tiger b The tiger tests have uncovered numerous bugs. This CL fixes the last of them. If a pair of curves do not intersect, but have one or both ends very close to the opposite curve, consider that an intersection. TBR=reed@google.com BUG=skia:5131 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2356363003 Review-Url: https://codereview.chromium.org/2356363003 --- tests/PathOpsCubicIntersectionTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/PathOpsCubicIntersectionTest.cpp') diff --git a/tests/PathOpsCubicIntersectionTest.cpp b/tests/PathOpsCubicIntersectionTest.cpp index 9bf60b7e39..07852bca9a 100644 --- a/tests/PathOpsCubicIntersectionTest.cpp +++ b/tests/PathOpsCubicIntersectionTest.cpp @@ -404,10 +404,10 @@ static void oneOff(skiatest::Reporter* reporter, const SkDCubic& cubic1, const S SkDebugf("sect%d,\n", index); } #endif - if (coin && intersections.used() != 2) { + if (coin && intersections.used() < 2) { SkDebugf(""); } - REPORTER_ASSERT(reporter, !coin || intersections.used() == 2); + REPORTER_ASSERT(reporter, !coin || intersections.used() >= 2); double tt1, tt2; SkDPoint xy1, xy2; for (int pt3 = 0; pt3 < intersections.used(); ++pt3) { -- cgit v1.2.3