Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb50b857 authored by John Reck's avatar John Reck Committed by Android Git Automerger
Browse files

am 09a0c7c8: Merge "Free prefetched layers on TRIM_MEMORY" into lmp-dev

* commit '09a0c7c8d511b8600d2a062d96c0e816a2aee761':
  Free prefetched layers on TRIM_MEMORY
parents 5e843ee6 4450c18e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -314,6 +314,7 @@ void CanvasContext::destroyHardwareResources() {
    stopDrawing();
    stopDrawing();
    if (mEglManager.hasEglContext()) {
    if (mEglManager.hasEglContext()) {
        requireGlContext();
        requireGlContext();
        freePrefetechedLayers();
        mRootRenderNode->destroyHardwareResources();
        mRootRenderNode->destroyHardwareResources();
        Caches::getInstance().flush(Caches::kFlushMode_Layers);
        Caches::getInstance().flush(Caches::kFlushMode_Layers);
    }
    }