Index: include/core/SkRect.h |
diff --git a/include/core/SkRect.h b/include/core/SkRect.h |
index 995beb8662ee8a8e395b50435c8e33c44ecce2ca..96bf0f4d9088bf64e8c02dea5e5d625bc9752564 100644 |
--- a/include/core/SkRect.h |
+++ b/include/core/SkRect.h |
@@ -75,6 +75,8 @@ struct SK_API SkIRect { |
*/ |
int height() const { return fBottom - fTop; } |
+ SkISize size() const { return SkISize::Make(this->width(), this->height()); } |
+ |
/** |
* Since the center of an integer rect may fall on a factional value, this |
* method is defined to return (right + left) >> 1. |