diff options
author | 2025-01-09 22:01:04 -0800 | |
---|---|---|
committer | 2025-01-10 18:18:05 -0800 | |
commit | 1ed7dec9b3a047e6d4c61a019ba7934f737cf900 (patch) | |
tree | 766ce02560e1fcdce2f13f12a03e69fe7e74aa96 /services/surfaceflinger/LayerFE.cpp | |
parent | a17adea50dce1ca2b360a83edbe50903b33526b3 (diff) |
[Lut] in client composition, we should pass hwc.luts into lutShader to
render the layer
Bug: 380894872
Test: libcompositionengine_test
Flag: EXEMPT the lut is protected under the pointer
Change-Id: I3c326ba4dd3e4c42dcdd776a229495d446f97562
Diffstat (limited to 'services/surfaceflinger/LayerFE.cpp')
-rw-r--r-- | services/surfaceflinger/LayerFE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/LayerFE.cpp b/services/surfaceflinger/LayerFE.cpp index dbb1ed3a9f..e331e68c35 100644 --- a/services/surfaceflinger/LayerFE.cpp +++ b/services/surfaceflinger/LayerFE.cpp @@ -173,7 +173,7 @@ std::optional<compositionengine::LayerFE::LayerSettings> LayerFE::prepareClientC layerSettings.edgeExtensionEffect = mSnapshot->edgeExtensionEffect; // Record the name of the layer for debugging further down the stack. layerSettings.name = mSnapshot->name; - layerSettings.luts = mSnapshot->luts; + layerSettings.luts = mSnapshot->luts ? mSnapshot->luts : targetSettings.luts; if (hasEffect() && !hasBufferOrSidebandStream()) { prepareEffectsClientComposition(layerSettings, targetSettings); |