aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkBitmap.h
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-10-13 09:43:04 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-10-13 14:03:07 +0000
commit3bd0fece5fadd522c2e8c1b0ca9934d7455d9ccd (patch)
treec44783056b83da3314dcdc6ed0757d6eb90d1f42 /include/core/SkBitmap.h
parentea878b9a6ba2928009da11e1d96933d5b983c0dd (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/SkBitmap.h')
-rw-r--r--include/core/SkBitmap.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index b9300d984a..dcf0b0ea54 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -143,36 +143,10 @@ public:
/**
* Returns the size (in bytes) of the bitmap'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); }
-#ifdef SK_SUPPORT_LEGACY_SAFESIZE64
- size_t getSize() const { return fInfo.height() * fRowBytes; }
-
- /** Return the number of bytes from the pointer returned by getPixels()
- to the end of the allocated space in the buffer. Required in
- cases where extractSubset has been called.
- */
- size_t getSafeSize() const { return fInfo.getSafeSize(fRowBytes); }
-
- /**
- * Return the full size of the bitmap, in bytes.
- */
- int64_t computeSize64() const {
- return sk_64_mul(fInfo.height(), fRowBytes);
- }
-
- /**
- * Return the number of bytes from the pointer returned by getPixels()
- * to the end of the allocated space in the buffer. This may be smaller
- * than computeSize64() if there is any rowbytes padding beyond the width.
- */
- int64_t computeSafeSize64() const {
- return fInfo.getSafeSize64(fRowBytes);
- }
-#endif
-
/** Returns true if this bitmap is marked as immutable, meaning that the
contents of its pixels will not change for the lifetime of the bitmap.
*/