diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-07 18:51:31 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-07 18:51:31 +0000 |
commit | a5e55925ea03e76885804bda77408a1d6f04c335 (patch) | |
tree | 346772e0d28a5483ca807742cf5e074cf3fb0bb5 /tests/PathOpsCubicIntersectionTest.cpp | |
parent | 3faf1f1fb6157c49bd09cd3c78dc88421e70deb7 (diff) |
path ops -- fix skp bugs
This fixes a series of bugs discovered by running
the small set of Skia skp files through pathops
to flatten the clips.
Review URL: https://codereview.chromium.org/14798004
git-svn-id: http://skia.googlecode.com/svn/trunk@9042 2bbb7eff-a529-9590-31e7-b0007b416f81
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 6af76c2adb..58d7d98024 100644 --- a/tests/PathOpsCubicIntersectionTest.cpp +++ b/tests/PathOpsCubicIntersectionTest.cpp @@ -163,6 +163,9 @@ static const SkDCubic testSet[] = { const size_t testSetCount = SK_ARRAY_COUNT(testSet); static const SkDCubic newTestSet[] = { +{{{0, 1}, {2, 3}, {5, 1}, {4, 3}}}, +{{{1, 5}, {3, 4}, {1, 0}, {3, 2}}}, + {{{3, 5}, {1, 6}, {5, 0}, {3, 1}}}, {{{0, 5}, {1, 3}, {5, 3}, {6, 1}}}, @@ -286,8 +289,8 @@ static void newOneOff(skiatest::Reporter* reporter, int outer, int inner) { } static void oneOffTest(skiatest::Reporter* reporter) { - oneOff(reporter, 14, 16); newOneOff(reporter, 0, 1); + oneOff(reporter, 14, 16); } static void oneOffTests(skiatest::Reporter* reporter) { |