diff options
author | Mike Reed <reed@google.com> | 2017-12-24 19:50:57 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-25 02:51:32 +0000 |
commit | 7557bbbe19b0d56484fe039171e4d97b75f209b3 (patch) | |
tree | 8d88d739a1f97553bff2e0ac029f8693e6eed108 /src/core/SkBigPicture.h | |
parent | 0a9d728851aaef71355b397ac03c1ddcb9e4bf06 (diff) |
Revert "remove approxbytes api from SkPicture"
This reverts commit bfc11853a88cda6951ae97399577fadadf2adcd5.
Bug: skia:
Change-Id: Ied4baad0496a06a52bec6965f9c97e13ebe2ab0a
Reviewed-on: https://skia-review.googlesource.com/89442
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkBigPicture.h')
-rw-r--r-- | src/core/SkBigPicture.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkBigPicture.h b/src/core/SkBigPicture.h index 6edf4004c1..cbe492cc22 100644 --- a/src/core/SkBigPicture.h +++ b/src/core/SkBigPicture.h @@ -36,13 +36,15 @@ public: SkBigPicture(const SkRect& cull, SkRecord*, // We take ownership of the caller's ref. SnapshotArray*, // We take exclusive ownership. - SkBBoxHierarchy*); // We take ownership of the caller's ref. + SkBBoxHierarchy*, // We take ownership of the caller's ref. + size_t approxBytesUsedBySubPictures); // SkPicture overrides void playback(SkCanvas*, AbortCallback*) const override; SkRect cullRect() const override; int approximateOpCount() const override; + size_t approximateBytesUsed() const override; const SkBigPicture* asSkBigPicture() const override { return this; } // Used by GrLayerHoister @@ -59,6 +61,7 @@ private: SkPicture const* const* drawablePicts() const; const SkRect fCullRect; + const size_t fApproxBytesUsedBySubPictures; sk_sp<const SkRecord> fRecord; std::unique_ptr<const SnapshotArray> fDrawablePicts; sk_sp<const SkBBoxHierarchy> fBBH; |