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

Commit b98a1bfb authored by Derek Sollenberger's avatar Derek Sollenberger Committed by Android (Google) Code Review
Browse files

Merge "Fix SkSurface cache."

parents 331d31ca 4bf67f5d
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),