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

Commit cda45e95 authored by Nathaniel Nifong's avatar Nathaniel Nifong
Browse files

Cache blur shaders only when blur is enabled

Change-Id: I5dd5f90e70d99e2ff8213177c81345171694a1f2

Test: build for R4 confirm with perfetto blur shaders attempted only when property is set

Bug: b/190499047
Change-Id: I3053e6b0711fc77b97f216019de99211d0b842cc
parent 0d1e6c83
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -291,7 +291,11 @@ void Cache::primeShaderCache(SkiaRenderEngine* renderengine) {

        drawSolidLayers(renderengine, display, dstTexture);
        drawShadowLayers(renderengine, display, srcTexture);

        if (renderengine->supportsBackgroundBlur()) {
            drawBlurLayers(renderengine, display, dstTexture);
        }

        // The majority of shaders are related to sampling images.
        drawImageLayers(renderengine, display, dstTexture, srcTexture);