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

Unified Diff: src/gpu/GrContext.cpp

Issue 1088683004: add textblob cache freeall (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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/GrTextBlobCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 7d53071a0e79ace0ef7357a059d250c168ef954a..93799e0a2cc4db82a8423cfc3ddfee281df330e1 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -193,6 +193,7 @@ void GrContext::abandonContext() {
fBatchFontCache->freeAll();
fFontCache->freeAll();
fLayerCache->freeAll();
+ fTextBlobCache->freeAll();
}
void GrContext::resetContext(uint32_t state) {
@@ -212,6 +213,7 @@ void GrContext::freeGpuResources() {
fBatchFontCache->freeAll();
fFontCache->freeAll();
fLayerCache->freeAll();
+ fTextBlobCache->freeAll();
bsalomon 2015/04/16 18:06:11 actually not sure we need this here. This function
joshualitt 2015/04/16 18:08:30 nope, good catch.
// a path renderer may be holding onto resources
SkSafeSetNull(fPathRendererChain);
SkSafeSetNull(fSoftwarePathRenderer);
« no previous file with comments | « no previous file | src/gpu/GrTextBlobCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698