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 /src/core/SkGeometry.h | |
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 'src/core/SkGeometry.h')
-rw-r--r-- | src/core/SkGeometry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkGeometry.h b/src/core/SkGeometry.h index a0c13d6046..bd3abe1acf 100644 --- a/src/core/SkGeometry.h +++ b/src/core/SkGeometry.h @@ -276,7 +276,7 @@ struct SkConic { * * @return true if max curvature found inside 0..1 range, false otherwise */ - bool findMaxCurvature(SkScalar* t) const; +// bool findMaxCurvature(SkScalar* t) const; // unimplemented static SkScalar TransformW(const SkPoint[3], SkScalar w, const SkMatrix&); |