diff options
author | caryclark <caryclark@google.com> | 2015-05-19 11:05:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-19 11:05:37 -0700 |
commit | 612f70d5fa2d4bf7a393c791966bbce933407017 (patch) | |
tree | 1174459cfba4fe50b0be8b75f149d4650e3e7aaa /tools/pathops_sorter.htm | |
parent | ee2a8eede9ba9efd34cd132c5abc175f9c434b7a (diff) |
handle large conic strokes better
A stroked conic computes the outset quad's control point by
computing the intersection of the quad's endpoints. If the
the denominator used to compute the scale factor for the
control point is small, check to see if the numerator is also
small so that the division stays bounded.
Also clean up error returns and internal function calls to
simplify the code.
Additionally, remove comic max curvature (unimplemented) and call
extrema functions instead to handle cases where the conic is degenerate
or is a line.
R=reed@google.com, fmalita@chromium.org
BUG=skia:3843
Review URL: https://codereview.chromium.org/1144883003
Diffstat (limited to 'tools/pathops_sorter.htm')
-rw-r--r-- | tools/pathops_sorter.htm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/pathops_sorter.htm b/tools/pathops_sorter.htm index 3411505eb7..4fb18fad64 100644 --- a/tools/pathops_sorter.htm +++ b/tools/pathops_sorter.htm @@ -7,9 +7,10 @@ <div style="height:0"> <div id="sect1"> -{{{6, -3}, {0, 1}}} id=3 -{{{1.6714313f, -1.08141601f}, {2.24979973f, -1.14467525f}, {2.27122664f, -0.514151096f}, {0, 1}}} id=5 -{{{0.001119050197303295135, 0.9992539882659912109}, {4.001119136810302734, 6.999254226684570312}}}, +{{{fX=1.97000003 fY=2.00000000 }, {fX=1.97000003 fY=3.97000003 }, {fX=0.000000000 fY=3.97000003 }} fW: 0.707106769 +{{{fX=1.99750006 fY=2.00000000 } {fX=1.99750006 fY=2.02749991 } +{{{fX=1.96415257 fY=2.36347127 } {fX=1.95914865 fY=2.39051223 } + </div> </div> |