diff options
| author | 2011-05-04 18:28:07 -0700 | |
|---|---|---|
| committer | 2011-06-13 15:51:35 -0700 | |
| commit | 9b8e1962d65589073b004889195245e757fb0e12 (patch) | |
| tree | 37bb0c331b24cc85b4e0e6354e44f13518bdba8d /libs/gui/SurfaceTexture.cpp | |
| parent | 7bb843ca0777111dae7daf8f1b0705817cf523c4 (diff) | |
Temporarily don't return the current buffer in synchronous mode
activate synchronous mode by default.
Diffstat (limited to 'libs/gui/SurfaceTexture.cpp')
| -rw-r--r-- | libs/gui/SurfaceTexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/SurfaceTexture.cpp b/libs/gui/SurfaceTexture.cpp index 2cda4c82dbcf..3cecdb401ab1 100644 --- a/libs/gui/SurfaceTexture.cpp +++ b/libs/gui/SurfaceTexture.cpp @@ -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; |