Free prefetched layers on TRIM_MEMORY
Bug: 17208461 Change-Id: I831c10d29d5920274b90e11a67d6cd106972a058
This commit is contained in:
@@ -314,6 +314,7 @@ void CanvasContext::destroyHardwareResources() {
|
||||
stopDrawing();
|
||||
if (mEglManager.hasEglContext()) {
|
||||
requireGlContext();
|
||||
freePrefetechedLayers();
|
||||
mRootRenderNode->destroyHardwareResources();
|
||||
Caches::getInstance().flush(Caches::kFlushMode_Layers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user