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

Commit f91f140a authored by Tianhua Sun's avatar Tianhua Sun Committed by Hongguang
Browse files

surfaceflinger: buffer was released early for clear client target requests [1/1]



PD#SWPL-76998
BUG=227223204

Problem:
buffer was released early when layer is not marked
as CLIENT composition and requests clear client target.

Solution:
do not early release the buffer when layer is not
marked as CLIENT composition.

Verify:
adt3

Change-Id: I1f6c9be0d4f2e2a3f10ab6bcd64a08d9322a71a3
Signed-off-by: default avatarTianhua Sun <tianhua.sun@amlogic.com>
parent 8ffb0288
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1365,7 +1365,10 @@ std::vector<LayerFE::LayerSettings> Output::generateClientCompositionRequests(
                }
            }

            if (clientComposition) {
                outLayerFEs.push_back(&layerFE);
            }

            clientCompositionLayers.insert(clientCompositionLayers.end(),
                                           std::make_move_iterator(results.begin()),
                                           std::make_move_iterator(results.end()));