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

Commit 1ede4f67 authored by Ady Abraham's avatar Ady Abraham Committed by Automerger Merge Worker
Browse files

Merge "SF: HWComposer::isConnected can be called before a display is...

Merge "SF: HWComposer::isConnected can be called before a display is connected" into sc-dev am: 9fc95134

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

Change-Id: If0cb876184e87f01dfd55bbefd51fed819a06e5c
parents f04c2458 9fc95134
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -322,10 +322,13 @@ void HWComposer::destroyLayer(HalDisplayId displayId, HWC2::Layer* layer) {
}

bool HWComposer::isConnected(PhysicalDisplayId displayId) const {
    RETURN_IF_INVALID_DISPLAY(displayId, false);
    if (mDisplayData.count(displayId)) {
        return mDisplayData.at(displayId).hwcDisplay->isConnected();
    }

    return false;
}

std::vector<HWComposer::HWCDisplayMode> HWComposer::getModes(PhysicalDisplayId displayId) const {
    RETURN_IF_INVALID_DISPLAY(displayId, {});