diff options
author | caryclark <caryclark@google.com> | 2016-09-23 05:47:20 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-23 05:47:20 -0700 |
commit | 27c015dfcf4e2b8fb1abe327cc40204e2a4f452a (patch) | |
tree | 1fab83dc8286a4f1900871c69e80e624203e7e3e /tests/PathOpsCubicIntersectionTest.cpp | |
parent | 5a9c2f110e4f1a78d9bfedcf708168909706d7fd (diff) |
split tight quads and conics
Tight quads and conics may nearly fold over on themselves, confusing
coincidence against other curves. Split them at their max curvature
early on to avoid complicating later logic.
TBR=reed@google.com
BUG=skia:5131
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2357353002
Review-Url: https://codereview.chromium.org/2357353002
Diffstat (limited to 'tests/PathOpsCubicIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsCubicIntersectionTest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/PathOpsCubicIntersectionTest.cpp b/tests/PathOpsCubicIntersectionTest.cpp index dd7a7f7e2f..9bf60b7e39 100644 --- a/tests/PathOpsCubicIntersectionTest.cpp +++ b/tests/PathOpsCubicIntersectionTest.cpp @@ -165,6 +165,9 @@ static const SkDCubic testSet[] = { const int testSetCount = (int) SK_ARRAY_COUNT(testSet); static const SkDCubic newTestSet[] = { +{ { { 130.0427549999999997, 11417.41309999999976 },{ 130.2331240000000037, 11418.3192999999992 },{ 131.0370790000000056, 11419 },{ 132, 11419 } } }, +{ { { 132, 11419 },{ 130.8954319999999996, 11419 },{ 130, 11418.10449999999946 },{ 130, 11417 } } }, + {{{1,3}, {-1.0564518,1.79032254}, {1.45265341,0.229448318}, {1.45381773,0.22913377}}}, {{{1.45381773,0.22913377}, {1.45425761,0.229014933}, {1.0967741,0.451612949}, {0,1}}}, @@ -698,7 +701,7 @@ DEF_TEST(PathOpsCubicCoinOneOff, reporter) { } DEF_TEST(PathOpsCubicIntersectionOneOff, reporter) { - newOneOff(reporter, 66, 70); + newOneOff(reporter, 0, 1); } DEF_TEST(PathOpsCubicIntersectionTestsOneOff, reporter) { |