We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e17dfdd + bb56192 commit 27e2f43Copy full SHA for 27e2f43
1 file changed
libs/gui/Surface.cpp
@@ -2735,8 +2735,8 @@ status_t Surface::unlockAndPost()
2735
2736
bool Surface::waitForNextFrame(uint64_t lastFrame, nsecs_t timeout) {
2737
Mutex::Autolock lock(mMutex);
2738
- if (mNextFrameNumber > lastFrame) {
2739
- return true;
+ if (mLastFrameNumber > lastFrame) {
+ return true;
2740
}
2741
return mQueueBufferCondition.waitRelative(mMutex, timeout) == OK;
2742
0 commit comments