diff options
author | Mike Reed <reed@google.com> | 2017-10-13 09:43:04 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-13 14:03:07 +0000 |
commit | 3bd0fece5fadd522c2e8c1b0ca9934d7455d9ccd (patch) | |
tree | c44783056b83da3314dcdc6ed0757d6eb90d1f42 /include/core/SkPixmap.h | |
parent | ea878b9a6ba2928009da11e1d96933d5b983c0dd (diff) |
remove dead code for getSize, getSafeSize, etc.
Bug: skia:
Change-Id: I7dcdfaa539040b95e5b62174ccd22a94212980e0
Reviewed-on: https://skia-review.googlesource.com/59442
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'include/core/SkPixmap.h')
-rw-r--r-- | include/core/SkPixmap.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h index f304bde933..3b9f10e073 100644 --- a/include/core/SkPixmap.h +++ b/include/core/SkPixmap.h @@ -206,34 +206,9 @@ public: */ int shiftPerPixel() const { return fInfo.shiftPerPixel(); } -#ifdef SK_SUPPORT_LEGACY_SAFESIZE64 - /** Returns conservative memory required for pixel storage. - Includes unused memory on last row when rowBytesAsPixels() exceeds width(). - - @return conservative pixel storage size - */ - uint64_t getSize64() const { return sk_64_mul(fInfo.height(), fRowBytes); } - - /** Returns minimum memory required for pixel storage. - Does not include unused memory on last row when rowBytesAsPixels() exceeds width(). - - @return exact pixel storage size - */ - uint64_t getSafeSize64() const { return fInfo.getSafeSize64(fRowBytes); } - - /** Returns minimum memory required for pixel storage. - Does not include unused memory on last row when rowBytesAsPixels() exceeds width(). - Returns zero if value is does not fit in a signed 32-bit integer. - The largest value than can be returned is 2,147,483,647. - - @return exact pixel storage size if size fits in signed 32 bits - */ - size_t getSafeSize() const { return fInfo.getSafeSize(fRowBytes); } -#endif - /** * Returns the size (in bytes) of the pixmap's image buffer. - * If the calculation overflows, or if the height is 0, this returns 0. + * If the calculation overflows, this returns max_size_t. */ size_t computeByteSize() const { return fInfo.computeByteSize(fRowBytes); } |