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

Unified Diff: include/utils/SkPictureUtils.h

Issue 490253003: Implement SkPicture::bytesUsed() for SkRecord backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix minor edit error in SkTileGrid::bytesUsed Created 6 years, 1 month 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
Index: include/utils/SkPictureUtils.h
diff --git a/include/utils/SkPictureUtils.h b/include/utils/SkPictureUtils.h
index c35e1c74090996c8daf1f71f96b4966ef15f7616..9b060898fd7c835f390bf5684c2a465dbe50b44b 100644
--- a/include/utils/SkPictureUtils.h
+++ b/include/utils/SkPictureUtils.h
@@ -78,6 +78,14 @@ public:
* and rect information.
*/
static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* prCont);
+
+ /**
+ * How many bytes are allocated to hold the SkPicture.
+ * Includes operations, parameters, bounding data, deletion listeners;
+ * does not include large objects that SkRecord holds a reference to
+ * (e.g. paths, pixels backing bitmaps).
mtklein 2014/11/18 19:26:14 Might add nested pictures to the list of things we
tomhudson 2014/11/18 19:35:12 Done.
+ */
+ static size_t ApproximateBytesUsed(const SkPicture* pict);
};
#endif
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkBBoxHierarchy.h » ('j') | src/core/SkRTree.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698