Loading libs/gui/SurfaceTexture.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -271,7 +271,7 @@ status_t SurfaceTexture::dequeueBuffer(int *outBuf, uint32_t w, uint32_t h, if (state == BufferSlot::DEQUEUED) { dequeuedCount++; } if (state == BufferSlot::FREE || i == mCurrentTexture) { if (state == BufferSlot::FREE /*|| i == mCurrentTexture*/) { foundSync = i; if (i != mCurrentTexture) { found = i; Loading libs/gui/tests/SurfaceTextureClient_test.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -505,11 +505,11 @@ TEST_F(SurfaceTextureClientTest, DISABLED_SurfaceTextureSyncModeWaitRetire) { ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[0])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[0])); thread->run(); ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[1])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[1])); thread->run(); ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[2])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[2])); //ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[2])); //ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[2])); thread->bufferDequeued(); thread->requestExitAndWait(); } Loading Loading
libs/gui/SurfaceTexture.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -271,7 +271,7 @@ status_t SurfaceTexture::dequeueBuffer(int *outBuf, uint32_t w, uint32_t h, if (state == BufferSlot::DEQUEUED) { dequeuedCount++; } if (state == BufferSlot::FREE || i == mCurrentTexture) { if (state == BufferSlot::FREE /*|| i == mCurrentTexture*/) { foundSync = i; if (i != mCurrentTexture) { found = i; Loading
libs/gui/tests/SurfaceTextureClient_test.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -505,11 +505,11 @@ TEST_F(SurfaceTextureClientTest, DISABLED_SurfaceTextureSyncModeWaitRetire) { ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[0])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[0])); thread->run(); ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[1])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[1])); thread->run(); ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[2])); ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[2])); //ASSERT_EQ(OK, anw->dequeueBuffer(anw.get(), &buf[2])); //ASSERT_EQ(OK, anw->queueBuffer(anw.get(), buf[2])); thread->bufferDequeued(); thread->requestExitAndWait(); } Loading