aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-07-13 10:56:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-13 10:56:53 -0700
commitb1b12f8666a48b8ff1367beed97bc84032552ac8 (patch)
treea28db558a027af8c1d26d873e42987017f4a0233 /include/core
parent99f942e5505a663b0d355ad187484f15e3a9a83a (diff)
handle large conic weights
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPoint.h4
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