Make GrContext::freeGpuResources() purge the resource cache

BUG=skia:

Review URL: https://codereview.chromium.org/1082783002
This commit is contained in:
bsalomon 2015-04-13 11:09:56 -07:00 committed by Commit bot
parent 697ac1c138
commit 3033b9faac

View File

@ -215,6 +215,8 @@ void GrContext::freeGpuResources() {
// a path renderer may be holding onto resources
SkSafeSetNull(fPathRendererChain);
SkSafeSetNull(fSoftwarePathRenderer);
fResourceCache->purgeAllUnlocked();
}
void GrContext::getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const {