diff options
author | 2017-12-24 19:50:57 -0500 | |
---|---|---|
committer | 2017-12-25 02:51:32 +0000 | |
commit | 7557bbbe19b0d56484fe039171e4d97b75f209b3 (patch) | |
tree | 8d88d739a1f97553bff2e0ac029f8693e6eed108 /include | |
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 'include')
-rw-r--r-- | include/core/SkPicture.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h index 1a02a36750..5ca60ca82c 100644 --- a/include/core/SkPicture.h +++ b/include/core/SkPicture.h @@ -102,6 +102,9 @@ public: */ virtual int approximateOpCount() const = 0; + /** Returns the approximate byte size of this picture, not including large ref'd objects. */ + virtual size_t approximateBytesUsed() const = 0; + // Returns NULL if this is not an SkBigPicture. virtual const SkBigPicture* asSkBigPicture() const { return nullptr; } |