diff options
author | caryclark <caryclark@google.com> | 2016-09-26 11:03:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-26 11:03:54 -0700 |
commit | 414c4295f951d43068666b6294df15b2fd2ba85c (patch) | |
tree | 4a8abbb094d1cedc8eb1b2a773f6b2f3609f0576 /src/core/SkGeometry.h | |
parent | 849f5027e9d3e27c34453966fc3471eb57e76e54 (diff) |
allow conic chop to fail
Fuzzy values may cause the conic chop to fail.
Check to see if the values are all finite, and
require the caller to do the same.
R=reed@google.com
BUG=650178
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2368993002
Review-Url: https://codereview.chromium.org/2368993002
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 74c9d89e3f..55d763b967 100644 --- a/src/core/SkGeometry.h +++ b/src/core/SkGeometry.h @@ -215,7 +215,7 @@ struct SkConic { * be used. */ void evalAt(SkScalar t, SkPoint* pos, SkVector* tangent = nullptr) const; - void chopAt(SkScalar t, SkConic dst[2]) const; + bool SK_WARN_UNUSED_RESULT chopAt(SkScalar t, SkConic dst[2]) const; void chopAt(SkScalar t1, SkScalar t2, SkConic* dst) const; void chop(SkConic dst[2]) const; |