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

Commit 7be693c9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: setCompositionType when Client composition"

parents 485fad1a a6d4233e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2182,7 +2182,16 @@ void SurfaceFlinger::setUpHWComposer(const CompositionInfo& compositionInfo) {
    switch (compositionInfo.compositionType)
    {
        case HWC2::Composition::Invalid:
            break;

        case HWC2::Composition::Client:
            if (compositionInfo.hwc.hwcLayer) {
                auto error = (compositionInfo.hwc.hwcLayer)->
                    setCompositionType(compositionInfo.compositionType);
                ALOGE_IF(error != HWC2::Error::None,
                        "[SF] Failed to set composition type: %s (%d)",
                            to_string(error).c_str(), static_cast<int32_t>(error));
            }
            break;

        case HWC2::Composition::Sideband: