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

Commit 522b7268 authored by Ram Indani's avatar Ram Indani Committed by Android (Google) Code Review
Browse files

Merge "Return if HWCDisplay is not yet created" into main

parents cfa0faf2 4d712352
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -945,6 +945,10 @@ status_t HWComposer::notifyExpectedPresentIfRequired(PhysicalDisplayId displayId
                                                     std::optional<Period> timeoutOpt) {
    RETURN_IF_INVALID_DISPLAY(displayId, BAD_INDEX);
    auto& displayData = mDisplayData[displayId];
    if (!displayData.hwcDisplay) {
        // Display setup has not completed yet
        return BAD_INDEX;
    }
    {
        std::scoped_lock lock{displayData.expectedPresentLock};
        const auto lastExpectedPresentTimestamp = displayData.lastExpectedPresentTimestamp;