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; } |