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

Commit 9cea07c5 authored by Sally Qi's avatar Sally Qi
Browse files

[Lut HAL backend] skip libtonemap if the lut(s) is in use

Bug: 329472856
Test: builds
Flag: EXEMPT bugfix
Change-Id: Iaa0404629813074b5c65ba2ad47584491007fff5
parent e4002e31
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -572,8 +572,10 @@ sk_sp<SkShader> SkiaRenderEngine::createRuntimeEffectShader(
        }

        // disable tonemapping if we already locally tonemapped
        auto inputDataspace =
                usingLocalTonemap ? parameters.outputDataSpace : parameters.layer.sourceDataspace;
        // skip tonemapping if the luts is in use
        auto inputDataspace = usingLocalTonemap || (graphicBuffer && parameters.layer.luts)
                ? parameters.outputDataSpace
                : parameters.layer.sourceDataspace;
        auto effect =
                shaders::LinearEffect{.inputDataspace = inputDataspace,
                                      .outputDataspace = parameters.outputDataSpace,