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

Commit 205a70ea authored by Robin Lee's avatar Robin Lee Committed by Automerger Merge Worker
Browse files

Merge "SurfaceFlinger: fix no small window displayed in PIP mode of DTVKIT...

Merge "SurfaceFlinger: fix no small window displayed in PIP mode of DTVKIT [1/1]" am: cb8eb2be am: 5c1bc9bc

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1537927

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia641870da28966a0746ddf85f8379200c8f128e5
parents 6d82be72 5c1bc9bc
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -176,8 +176,15 @@ std::optional<compositionengine::LayerFE::LayerSettings> BufferLayer::prepareCli
        if (!holes.isEmpty()) {
            targetSettings.clearRegion.orSelf(holes);
        }

        if (mSidebandStream != nullptr) {
            // For surfaceview of tv sideband, there is no activeBuffer
            // in bufferqueue, we need return LayerSettings.
            return result;
        } else {
            return std::nullopt;
        }
    }
    bool blackOutLayer = (isProtected() && !targetSettings.supportsProtectedContent) ||
            (isSecure() && !targetSettings.isSecure);
    compositionengine::LayerFE::LayerSettings& layer = *result;