diff options
author | caryclark <caryclark@google.com> | 2016-09-26 05:36:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-26 05:36:58 -0700 |
commit | 6c3b9cdcb047afe963c7bcf34834ba2ecccacc33 (patch) | |
tree | d32c7f96607e4ca588a258e8cadd8202b2271aa6 /tests/PathOpsCubicIntersectionTest.cpp | |
parent | eafe9d1577f7a9feb19af9773bf835e5d657bec1 (diff) |
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
Diffstat (limited to 'tests/PathOpsCubicIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsCubicIntersectionTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |