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

Unified Diff: include/gpu/GrContext.h

Issue 1264283002: Add abliity to set textblob cache budget to GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index c4691e4652e6c811755a8ca23abb54ac4949075d..058c558cc5ceca09be5b8151c30d4176c30c9fe9 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -137,6 +137,13 @@ public:
*/
void setResourceCacheLimits(int maxResources, size_t maxResourceBytes);
+ /**
+ * Specify the TextBlob cache limit. If the current cache exceeds this limit it will purge.
+ *
+ * @param bytes The maximum number of bytes of cpu memory that can be held in the cache
+ */
+ void setTextBlobCacheLimit(size_t bytes);
bsalomon 2015/08/03 15:28:30 Is this just needed for testing? Seems like an odd
+
GrTextureProvider* textureProvider() { return fTextureProvider; }
const GrTextureProvider* textureProvider() const { return fTextureProvider; }
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698