replicant-frameworks_native/libs/gui
Sunita Nadampalli a929748ddb SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call
Surface Texture dequeue logic is modified to return the oldest of the
free buffers to Client on dequeue call.

Currently dequeue method is returning the first buffer index which is free.
The parsing is done in ascending order of the buffer slot indices.
This leads to returning the buffer which has been just queued to composer,
and hence display, and this defeats the purpose of having minimum dequeue count
as 2 in asynchrnouse mode.

This is fixed by checking all the free slots and returning the oldest buffer.

Change-Id: Ibbac10593c3994c278c601af0480b171635ecdd4
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
2011-11-15 11:43:35 -08:00
..
tests Define, document, and test the behavior of very large SurfaceTextures 2011-11-11 18:44:35 -08:00
Android.mk
IGraphicBufferAlloc.cpp
ISensorEventConnection.cpp
ISensorServer.cpp
ISurface.cpp
ISurfaceComposer.cpp SurfaceFlinger: make sync transactions explicit 2011-10-14 16:11:51 -07:00
ISurfaceComposerClient.cpp
ISurfaceTexture.cpp SurfaceTexture: report binder transaction failures 2011-10-14 15:17:07 -07:00
LayerState.cpp
Sensor.cpp
SensorChannel.cpp
SensorEventQueue.cpp
SensorManager.cpp SensorManager reconnects to sensor service when the later dies 2011-10-16 22:15:23 -07:00
Surface.cpp
SurfaceComposerClient.cpp SurfaceFlinger: make sync transactions explicit 2011-10-14 16:11:51 -07:00
SurfaceTexture.cpp SurfaceTexture: Fix to return the oldest of free buffers to Client on Dequeue call 2011-11-15 11:43:35 -08:00
SurfaceTextureClient.cpp SurfaceTexture: free buffers when disconnect fails 2011-10-18 17:14:33 -07:00