diff options
author | Cary Clark <caryclark@skia.org> | 2018-08-16 11:53:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-08-17 14:01:51 +0000 |
commit | 7d06e2642b5592c926c2e508aa6c3cd64c9009cd (patch) | |
tree | 84761874df9e14436ff9d2384b46470dc5c5b545 /gn/tests.gni | |
parent | 773151fec905581c968f222f9b4a45aebbfb772d (diff) | |
download | skqp-7d06e2642b5592c926c2e508aa6c3cd64c9009cd.tar.gz |
fixup winding contours
Add AsWinding to convert SkPath with even odd fill to winding fill.
This basic implementation works for simple non-intersecting paths.
It may fail if contours in paths touch, specifically when the leftmost
point in a contour is shared with another contour.
The incomplete parts are marked with TODO in the code.
If this interface and implementation look promising, I will continue to
tackle the more difficult cases.
R=reed@google.com,bungeman@google.com
Bug: skia:7682
Change-Id: I479fba60072eb1391b451fcb819504245da2e2a9
Reviewed-on: https://skia-review.googlesource.com/147044
Commit-Queue: Cary Clark <caryclark@google.com>
Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'gn/tests.gni')
-rw-r--r-- | gn/tests.gni | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gn/tests.gni b/gn/tests.gni index 029465c226..cc480ee3ef 100644 --- a/gn/tests.gni +++ b/gn/tests.gni @@ -293,6 +293,7 @@ tests_sources = [ pathops_tests_sources = [ "$_tests/PathOpsAngleIdeas.cpp", "$_tests/PathOpsAngleTest.cpp", + "$_tests/PathOpsAsWindingTest.cpp", "$_tests/PathOpsBattles.cpp", "$_tests/PathOpsBoundsTest.cpp", "$_tests/PathOpsBuilderConicTest.cpp", |