Index: include/core/SkMatrix.h |
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h |
index 89b3072f79e6bf97a6e7a9ca6c6012abb2473384..0252bc7101c423217093f1a7f281af71b792dfb5 100644 |
--- a/include/core/SkMatrix.h |
+++ b/include/core/SkMatrix.h |
@@ -28,7 +28,13 @@ public: |
m.setScale(sx, sy); |
return m; |
} |
- |
+ |
+ static SkMatrix SK_WARN_UNUSED_RESULT MakeScale(SkScalar scale) { |
+ SkMatrix m; |
+ m.setScale(scale, scale); |
+ return m; |
+ } |
+ |
static SkMatrix SK_WARN_UNUSED_RESULT MakeTrans(SkScalar dx, SkScalar dy) { |
SkMatrix m; |
m.setTranslate(dx, dy); |