Merge "Make sure to sync GPU after deleting memory in trimMemory." into qt-dev
am: 68406a2dd5
Change-Id: I67a9c2e15ec9b6691befec3cd8d439924fbfa5b4
This commit is contained in:
@@ -126,6 +126,10 @@ void CacheManager::trimMemory(TrimMemoryMode mode) {
|
|||||||
SkGraphics::SetFontCacheLimit(mMaxCpuFontCacheBytes);
|
SkGraphics::SetFontCacheLimit(mMaxCpuFontCacheBytes);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We must sync the cpu to make sure deletions of resources still queued up on the GPU actually
|
||||||
|
// happen.
|
||||||
|
mGrContext->flush(kSyncCpu_GrFlushFlag, 0, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CacheManager::trimStaleResources() {
|
void CacheManager::trimStaleResources() {
|
||||||
|
|||||||
Reference in New Issue
Block a user