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

Commit 8f3691ec authored by Radhika Ranjan Soni's avatar Radhika Ranjan Soni Committed by Steve Kondik
Browse files

SF: Avoid wormhole clear for BLIT calls

Do not call GPU clear from SF when composition
type is BLIT as it'll be taken care in HAL.

Change-Id: Ia613eb9b824c6484ecc8c8fa4ee883545d8541b8
parent 8f090650
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1891,8 +1891,12 @@ void SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const

            // screen is already cleared here
            if (!region.isEmpty()) {
                if (cur != end) {
                    if (cur->getCompositionType() != HWC_BLIT)
                        // can happen with SurfaceView
                        drawWormhole(hw, region);
                } else
                    drawWormhole(hw, region);
            }
        }