Make GrContext::freeGpuResources() purge the resource cache
BUG=skia: Review URL: https://codereview.chromium.org/1082783002
This commit is contained in:
parent
697ac1c138
commit
3033b9faac
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user