aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecordedDrawable.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-12-23 20:54:53 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-24 13:40:41 +0000
commitbfc11853a88cda6951ae97399577fadadf2adcd5 (patch)
treeb69901d8d0513b28074c4303edad3005eaa8f58a /src/core/SkRecordedDrawable.cpp
parent3c678ffe2ca1099e37d3dbbf2984362551fba75e (diff)
remove approxbytes api from SkPicture
Bug: skia: Change-Id: I292bc9ab52fe8df3ce97a2ad4b06085b0332b19d Reviewed-on: https://skia-review.googlesource.com/89440 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkRecordedDrawable.cpp')
-rw-r--r--src/core/SkRecordedDrawable.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/SkRecordedDrawable.cpp b/src/core/SkRecordedDrawable.cpp
index 342701a365..bb57885d5d 100644
--- a/src/core/SkRecordedDrawable.cpp
+++ b/src/core/SkRecordedDrawable.cpp
@@ -31,14 +31,9 @@ SkPicture* SkRecordedDrawable::onNewPictureSnapshot() {
pictList = fDrawableList->newDrawableSnapshot();
}
- size_t subPictureBytes = 0;
- for (int i = 0; pictList && i < pictList->count(); i++) {
- subPictureBytes += pictList->begin()[i]->approximateBytesUsed();
- }
// SkBigPicture will take ownership of a ref on both fRecord and fBBH.
// We're not willing to give up our ownership, so we must ref them for SkPicture.
- return new SkBigPicture(fBounds, SkRef(fRecord.get()), pictList, SkSafeRef(fBBH.get()),
- subPictureBytes);
+ return new SkBigPicture(fBounds, SkRef(fRecord.get()), pictList, SkSafeRef(fBBH.get()));
}
void SkRecordedDrawable::flatten(SkWriteBuffer& buffer) const {