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

Commit 7920c657 authored by Dan Stoza's avatar Dan Stoza Committed by android-build-merger
Browse files

HWC2: Don\'t set null handle for client layers

am: e24da966

Change-Id: Ib572bf53756351bce11a20c28dca2362c7433562
parents 2c0d3160 e24da966
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -724,11 +724,6 @@ void Layer::setPerFrameData(const sp<const DisplayDevice>& displayDevice) {
        // setup a solid color layer yet
        // setup a solid color layer yet
        ALOGV("[%s] Requesting Client composition", mName.string());
        ALOGV("[%s] Requesting Client composition", mName.string());
        setCompositionType(hwcId, HWC2::Composition::Client);
        setCompositionType(hwcId, HWC2::Composition::Client);
        error = hwcLayer->setBuffer(nullptr, Fence::NO_FENCE);
        if (error != HWC2::Error::None) {
            ALOGE("[%s] Failed to set null buffer: %s (%d)", mName.string(),
                    to_string(error).c_str(), static_cast<int32_t>(error));
        }
        return;
        return;
    }
    }