Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: include/core/SkPicture.h

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkBBoxHierarchy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 79923a6a53350aee167cb06bf81266676bd61821..59dbf502b78ebf1d113e3ebb7287bd805ba22978 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -208,6 +208,9 @@ public:
*/
bool hasText() const;
+ /** Returns zero for unsupported implementations. */
+ size_t bytesUsed() const;
mtklein 2014/08/21 17:18:06 I'd perhaps hedge to approximateBytesUsed(), like
+
private:
// V2 : adds SkPixelRef's generation ID.
// V3 : PictInfo tag at beginning, and EOF tag at the end
« no previous file with comments | « no previous file | src/core/SkBBoxHierarchy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698