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

Commit ae566f21 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 2b9ffc00 9cea07c5
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,