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

Commit f115db8c authored by Vishnu Nair's avatar Vishnu Nair
Browse files

SurfaceFlinger: Don't handle effects if a buffer is available

Currently we do not support drawing effects and  buffers in the
same layer. Provide priority to drawing the buffer and then try
and handle both as a follow up.

Test: can add widgets to launcher
Test: go/wm-smoke
Bug: 245052266
Change-Id: I4399e954b6116fd8e5ee618c20fb3c604b657e04
parent b7c88afd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -769,7 +769,7 @@ std::optional<compositionengine::LayerFE::LayerSettings> Layer::prepareClientCom
    // Record the name of the layer for debugging further down the stack.
    layerSettings.name = getName();

    if (hasEffect()) {
    if (hasEffect() && !hasBufferOrSidebandStream()) {
        prepareEffectsClientComposition(layerSettings, targetSettings);
        return layerSettings;
    }