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

Commit cb8eb2be authored by Robin Lee's avatar Robin Lee Committed by Gerrit Code Review
Browse files

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

parents ff30b34c dcff00c8
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;