Index: include/core/SkPixmap.h |
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h |
index 96ea101f9f0d0e3367fa470ca114c6e2c8d3e058..275fcd0dcacb4417ec0d0cb140774af69b460c4f 100644 |
--- a/include/core/SkPixmap.h |
+++ b/include/core/SkPixmap.h |
@@ -48,6 +48,8 @@ public: |
SkAlphaType alphaType() const { return fInfo.alphaType(); } |
bool isOpaque() const { return fInfo.isOpaque(); } |
+ SkIRect bounds() const { return SkIRect::MakeWH(this->width(), this->height()); } |
+ |
uint64_t getSize64() const { return sk_64_mul(fInfo.height(), fRowBytes); } |
uint64_t getSafeSize64() const { return fInfo.getSafeSize64(fRowBytes); } |
size_t getSafeSize() const { return fInfo.getSafeSize(fRowBytes); } |