Chromium Code Reviews| Index: include/core/SkPoint.h |
| diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h |
| index 52d01ae88ce532c1f3290bea5c7e0f97c9e65792..f5ecbab78c4e6d6b1ea440ba913bf0d7e8c40344 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 |