diff options
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; } |