Chromium Code Reviews| Index: include/core/SkBitmap.h |
| diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h |
| index b36a1fd3fddc59b211c21be88efd367af01bfb53..06bea79f0d6ba9c12a641aa11d78831b2b397f3b 100644 |
| --- a/include/core/SkBitmap.h |
| +++ b/include/core/SkBitmap.h |
| @@ -83,6 +83,9 @@ public: |
| SkColorType colorType() const { return fInfo.colorType(); } |
| SkAlphaType alphaType() const { return fInfo.alphaType(); } |
| + SkIRect shape() const { return fInfo.shape(); } |
|
reed1
2014/10/23 14:39:44
We already have getBounds(SkIRect*). I'm fine if w
hal.canary
2014/10/24 18:23:31
Acknowledged.
|
| + SkISize dimensions() const { return fInfo.dimensions(); } |
| + |
| /** |
| * Return the number of bytes per pixel based on the colortype. If the colortype is |
| * kUnknown_SkColorType, then 0 is returned. |