diff options
author | reed <reed@google.com> | 2015-06-04 14:12:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-04 14:12:25 -0700 |
commit | ad7ae6c821c530dd6cb54b0e8931ba8b10e8d87d (patch) | |
tree | 8ef2a833209c3e2c1c445232869c76a320ec1b4c /include | |
parent | a84f569f0dbf07da55d168bc56538078dd1d2c08 (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.h | 2 |
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); } |