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

Commit baa6cf58 authored by Ady Abraham's avatar Ady Abraham
Browse files

SF: don't skip draw for clearContent

Layers that needs to punch a hole using clearContent (HWC request)
should not be skipped for drawing, as we need to draw the punch hole.

Bug: 190765526
Test: Force all non-SurfaceViews to client composition
Change-Id: I891f697b0cea1bcbe9782714acd6b8f88ecc99b3
parent 6e8e3648
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -580,8 +580,8 @@ std::optional<compositionengine::LayerFE::LayerSettings> Layer::prepareClientCom
    layerSettings.geometry.positionTransform = getTransform().asMatrix4();

    // skip drawing content if the targetSettings indicate the content will be occluded
    layerSettings.skipContentDraw =
            layerSettings.skipContentDraw || !targetSettings.realContentIsVisible;
    const bool drawContent = targetSettings.realContentIsVisible || targetSettings.clearContent;
    layerSettings.skipContentDraw = !drawContent;

    if (hasColorTransform()) {
        layerSettings.colorTransform = getColorTransform();