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