diff options
author | caryclark <caryclark@google.com> | 2015-05-18 12:56:57 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-18 12:56:58 -0700 |
commit | 4e1a4c9399b8bb0897218f3ec10c254d3bb97463 (patch) | |
tree | 8d7dc01783988b530486faffd2317036eb41cfa6 /tests/PathOpsSimplifyTest.cpp | |
parent | 4e149c09bcf1f02e3f31cd8e7bbe794a00090948 (diff) |
fix builder winding again
Record the nesting level when finding the edge winding contribution
so that inner edges can be reversed as needed.
R=fmalita@chromium.org
BUG=skia:3838
Review URL: https://codereview.chromium.org/1140383002
Diffstat (limited to 'tests/PathOpsSimplifyTest.cpp')
-rw-r--r-- | tests/PathOpsSimplifyTest.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/PathOpsSimplifyTest.cpp b/tests/PathOpsSimplifyTest.cpp index 65a6441afc..40bbeb6baa 100644 --- a/tests/PathOpsSimplifyTest.cpp +++ b/tests/PathOpsSimplifyTest.cpp @@ -4782,11 +4782,27 @@ static void testIssue3838(skiatest::Reporter* reporter,const char* filename) { testSimplify(reporter, path, filename); } +static void testIssue3838_3(skiatest::Reporter* reporter,const char* filename) { + SkPath path; + path.moveTo(40, 10); + path.lineTo(60, 10); + path.lineTo(60, 30); + path.lineTo(40, 30); + path.lineTo(40, 10); + path.moveTo(41, 11); + path.lineTo(41, 29); + path.lineTo(59, 29); + path.lineTo(59, 11); + path.lineTo(41, 11); + testSimplify(reporter, path, filename); +} + static void (*skipTest)(skiatest::Reporter* , const char* filename) = 0; static void (*firstTest)(skiatest::Reporter* , const char* filename) = 0; static void (*stopTest)(skiatest::Reporter* , const char* filename) = 0; static TestDesc tests[] = { + TEST(testIssue3838_3), TEST(testIssue3838), TEST(testArc), TEST(testTriangle2), |