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

Commit 4bf67f5d authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Fix SkSurface cache.

Test: perfetto traces show > 5ms improvement
Change-Id: I49eb520566d0204bef85bf6d4a911d7e0db7aac4
parent 58f2d17c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -486,7 +486,7 @@ status_t SkiaGLRenderEngine::drawLayers(const DisplaySettings& display,
    }

    auto grContext = mInProtectedContext ? mProtectedGrContext : mGrContext;
    auto cache = mInProtectedContext ? mProtectedSurfaceCache : mSurfaceCache;
    auto& cache = mInProtectedContext ? mProtectedSurfaceCache : mSurfaceCache;
    AHardwareBuffer_Desc bufferDesc;
    AHardwareBuffer_describe(buffer->toAHardwareBuffer(), &bufferDesc);
    LOG_ALWAYS_FATAL_IF(!hasUsage(bufferDesc, AHARDWAREBUFFER_USAGE_GPU_SAMPLED_IMAGE),