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

Unified Diff: include/core/SkGraphics.h

Issue 20005003: add scaledimagecache (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « include/config/SkUserConfig.h ('k') | src/core/SkBitmapProcState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkGraphics.h
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h
index 87d66ad1f029a17d39f6ee7a3b1bfb77ecff36c3..c87604259077e82486f793d79d1ed66f093d7739 100644
--- a/include/core/SkGraphics.h
+++ b/include/core/SkGraphics.h
@@ -60,6 +60,10 @@ public:
*/
static void PurgeFontCache();
+ static size_t GetImageCacheBytesUsed();
+ static size_t GetImageCacheByteLimit();
+ static size_t SetImageCacheByteLimit(size_t newLimit);
+
/**
* Applications with command line options may pass optional state, such
* as cache sizes, here, for instance:
« no previous file with comments | « include/config/SkUserConfig.h ('k') | src/core/SkBitmapProcState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698