diff options
Diffstat (limited to 'src/core/SkPictureRecorder.cpp')
-rw-r--r-- | src/core/SkPictureRecorder.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp index a37cd4826c..6c23cc075e 100644 --- a/src/core/SkPictureRecorder.cpp +++ b/src/core/SkPictureRecorder.cpp @@ -83,12 +83,7 @@ sk_sp<SkPicture> SkPictureRecorder::finishRecordingAsPicture(uint32_t finishFlag fCullRect = bbhBound; } - size_t subPictureBytes = fRecorder->approxBytesUsedBySubPictures(); - for (int i = 0; pictList && i < pictList->count(); i++) { - subPictureBytes += pictList->begin()[i]->approximateBytesUsed(); - } - return sk_make_sp<SkBigPicture>(fCullRect, fRecord.release(), pictList, fBBH.release(), - subPictureBytes); + return sk_make_sp<SkBigPicture>(fCullRect, fRecord.release(), pictList, fBBH.release()); } sk_sp<SkPicture> SkPictureRecorder::finishRecordingAsPictureWithCull(const SkRect& cullRect, |