Index: include/core/SkRect.h |
diff --git a/include/core/SkRect.h b/include/core/SkRect.h |
index f25cac6e53dddc4890b61916a8fe99fefb038cb7..27a648feeb937d152e9c732ec9ec5f935410a9a9 100644 |
--- a/include/core/SkRect.h |
+++ b/include/core/SkRect.h |
@@ -439,6 +439,10 @@ struct SK_API SkRect { |
return r; |
} |
+ static SkRect Make(const SkISize& size) { |
+ return MakeIWH(size.width(), size.height()); |
+ } |
+ |
static SkRect SK_WARN_UNUSED_RESULT Make(const SkIRect& irect) { |
SkRect r; |
r.set(SkIntToScalar(irect.fLeft), |