commit | 83496425e3216a1d3d1613a8ddd4d3bb7d71638a | [log] [tgz] |
---|---|---|
author | deanm <deanm@chromium.org> | Tue Apr 26 14:15:21 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Apr 26 14:15:21 2016 -0700 |
tree | db15c46d05618cb0bbadcc58ab7f292ab35539f2 | |
parent | b77821c30cd07507447244271eedf4e7c615e35a [diff] |
pathops: Split loop type cubics only when there is a self-intersection. The ComplexBreak code comes from Loop and Blinn, which requires loops to be split if either double point is visible. However for intersection loops only need to be split when there is actually a self-intersection (when both double points are in [0, 1]). This patch splits cubics much less often so the output doesn't have extra segments unless the input had a self-intersecting loop. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1920663002 Review URL: https://codereview.chromium.org/1920663002