diff options
author | reed <reed@google.com> | 2016-07-13 10:56:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-13 10:56:53 -0700 |
commit | b1b12f8666a48b8ff1367beed97bc84032552ac8 (patch) | |
tree | a28db558a027af8c1d26d873e42987017f4a0233 /include/core | |
parent | 99f942e5505a663b0d355ad187484f15e3a9a83a (diff) |
handle large conic weights
BUG=627414
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2142393003
Review-Url: https://codereview.chromium.org/2142393003
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkPoint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h index 52d01ae88c..f5ecbab78c 100644 --- a/include/core/SkPoint.h +++ b/include/core/SkPoint.h @@ -549,4 +549,8 @@ struct SK_API SkPoint { typedef SkPoint SkVector; +static inline bool SkPointsAreFinite(const SkPoint array[], int count) { + return SkScalarsAreFinite(&array[0].fX, count << 1); +} + #endif |