Index: include/core/SkPoint.h |
diff --git a/include/core/SkPoint.h b/include/core/SkPoint.h |
index 4a97391c70e7d71a3029367ce2483a58134b32a5..52d01ae88ce532c1f3290bea5c7e0f97c9e65792 100644 |
--- a/include/core/SkPoint.h |
+++ b/include/core/SkPoint.h |
@@ -348,6 +348,16 @@ struct SK_API SkPoint { |
fY -= v.fY; |
} |
+ SkPoint operator*(SkScalar scale) const { |
+ return Make(fX * scale, fY * scale); |
+ } |
+ |
+ SkPoint& operator*=(SkScalar scale) { |
+ fX *= scale; |
+ fY *= scale; |
+ return *this; |
+ } |
+ |
/** |
* Returns true if both X and Y are finite (not infinity or NaN) |
*/ |