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

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: Unit test prevents bloat 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..8cefbc349968ae5bc869e3f7e1faf1cdde06ae3c 100644
--- a/include/utils/SkPictureUtils.h
+++ b/include/utils/SkPictureUtils.h
@@ -78,6 +78,9 @@ public:
* and rect information.
*/
static void GatherPixelRefsAndRects(SkPicture* pict, SkPixelRefContainer* prCont);
+
+ /** May return zero if the SkPicture implementation doesn't support counting. */
+ static size_t approximateBytesUsed(const SkPicture* pict);
reed1 2014/11/17 21:32:26 nit: Skia Static Methods Are Capitalized. "Used"?
tomhudson 2014/11/17 22:12:15 Done.
};
#endif
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkBBoxHierarchy.h » ('j') | src/core/SkTileGrid.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698