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

Commit baec6b97 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Log out-of-order window infos updates" into udc-dev am: d4668571 am:...

Merge "Log out-of-order window infos updates" into udc-dev am: d4668571 am: 4d6315be am: c344a798

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



Change-Id: If41c4619bb5d210b7d02d1cc9e6d425aefe10cf8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents aa970b75 c344a798
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -6700,6 +6700,13 @@ void InputDispatcher::onWindowInfosChanged(const gui::WindowInfosUpdate& update)
        for (const auto& [displayId, handles] : handlesPerDisplay) {
            setInputWindowsLocked(handles, displayId);
        }

        if (update.vsyncId < mWindowInfosVsyncId) {
            ALOGE("Received out of order window infos update. Last update vsync id: %" PRId64
                  ", current update vsync id: %" PRId64,
                  mWindowInfosVsyncId, update.vsyncId);
        }
        mWindowInfosVsyncId = update.vsyncId;
    }
    // Wake up poll loop since it may need to make new input dispatching choices.
    mLooper->wake();
+2 −0
Original line number Diff line number Diff line
@@ -204,6 +204,8 @@ private:

    const IdGenerator mIdGenerator;

    int64_t mWindowInfosVsyncId GUARDED_BY(mLock);

    // With each iteration, InputDispatcher nominally processes one queued event,
    // a timeout, or a response from an input consumer.
    // This method should only be called on the input dispatcher's own thread.