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

Unified Diff: src/gpu/GrTest.cpp

Issue 1264283002: Add abliity to set textblob cache budget to GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: move to GrTest 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
Index: src/gpu/GrTest.cpp
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp
index ce98aa764ba11182a87f2911ea6a900c554b36ec..da502732b13aa68cb09450ed6f3fd074583383cb 100644
--- a/src/gpu/GrTest.cpp
+++ b/src/gpu/GrTest.cpp
@@ -30,6 +30,10 @@ void GrContext::getTestTarget(GrTestTarget* tar) {
tar->init(this, fDrawingMgr.fDrawTarget);
}
+void GrContext::setTextBlobCacheLimit_ForTesting(size_t bytes) {
+ fTextBlobCache->setBudget(bytes);
+}
+
///////////////////////////////////////////////////////////////////////////////
void GrContext::purgeAllUnlockedResources() {
« no previous file with comments | « include/gpu/GrContext.h ('k') | src/gpu/GrTextBlobCache.h » ('j') | src/gpu/GrTextBlobCache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698