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

Commit 27e2f43f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix condition for waiting next frame" into main

parents e17dfdd3 bb561921
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2735,7 +2735,7 @@ status_t Surface::unlockAndPost()

bool Surface::waitForNextFrame(uint64_t lastFrame, nsecs_t timeout) {
    Mutex::Autolock lock(mMutex);
    if (mNextFrameNumber > lastFrame) {
    if (mLastFrameNumber > lastFrame) {
        return true;
    }
    return mQueueBufferCondition.waitRelative(mMutex, timeout) == OK;