aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-06-04 14:12:25 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-04 14:12:25 -0700
commitad7ae6c821c530dd6cb54b0e8931ba8b10e8d87d (patch)
tree8ef2a833209c3e2c1c445232869c76a320ec1b4c /include
parenta84f569f0dbf07da55d168bc56538078dd1d2c08 (diff)
switch bitmapshader internals over to pixmap
BUG=skia: NOTRY=True Review URL: https://codereview.chromium.org/1158273007
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPixmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h
index 96ea101f9f..275fcd0dca 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); }