Index: include/core/SkImageInfo.h |
diff --git a/include/core/SkImageInfo.h b/include/core/SkImageInfo.h |
index 7fedfa1a4ae17205f51c3e37930faa64e39beac7..6fbaf6bbce19b4039683e75f90d123176398d1ab 100644 |
--- a/include/core/SkImageInfo.h |
+++ b/include/core/SkImageInfo.h |
@@ -9,10 +9,11 @@ |
#define SkImageInfo_DEFINED |
#include "SkMath.h" |
+#include "SkRect.h" |
#include "SkSize.h" |
-class SkWriteBuffer; |
class SkReadBuffer; |
+class SkWriteBuffer; |
/** |
* Describes how to interpret the alpha compoent of a pixel. |
@@ -207,6 +208,7 @@ public: |
return SkAlphaTypeIsOpaque(fAlphaType); |
} |
+ SkIRect bounds() const { return SkIRect::MakeWH(fWidth, fHeight); } |
SkISize dimensions() const { return SkISize::Make(fWidth, fHeight); } |
/** |