replicant-frameworks_native/libs/gui
Jamie Gennis 3d8063b02e SurfaceTexture: change onFrameAvailable behavior
This change alters the conditions under which the onFrameAvailable
callback gets called by the C++ SurfaceTexture class.  The new behavior
is to call the callback whenever a frame gets queued that will be
visible to the buffer consumer.  This means that buffers queued in
synchronous mode always trigger the callback, as those buffers will
remain pending until they are consumed.  Buffers queued in asynchronous
mode will only trigger the callback if there was not previously an
unconsumed buffer pending.

The new behavior means that a consumer should perform a draw operation
exactly once for every onFrameAvailable call that it recieves.  This
change also modifies SurfaceFlinger and the SurfaceTexture JNI to
support of the new behavior.

Change-Id: I8b2c6e00961d3d58b11c6af50b555b6e4c5f5b40
2011-06-27 15:45:39 -07:00
..
tests SurfaceTexture: make tests use a large framebuffer. 2011-06-20 15:42:57 -07:00
Android.mk unify SurfaceTexture and Surface 2011-06-13 15:51:35 -07:00
IGraphicBufferAlloc.cpp Fix a GraphicBuffer leak in SurfaceTexture 2011-04-08 19:28:04 -07:00
ISensorEventConnection.cpp new SensorService 2010-07-19 17:57:29 -07:00
ISensorServer.cpp new SensorService 2010-07-19 17:57:29 -07:00
ISurface.cpp unify SurfaceTexture and Surface 2011-06-13 15:51:35 -07:00
ISurfaceComposer.cpp unify SurfaceTexture and Surface 2011-06-13 15:51:35 -07:00
ISurfaceComposerClient.cpp unify SurfaceTexture and Surface 2011-06-13 15:51:35 -07:00
ISurfaceTexture.cpp Implement {Surface|SurfaceTextureClient}::setSwapInterval() 2011-05-11 18:01:51 -07:00
LayerState.cpp merge libsurfaceflinger_client into libgui 2011-03-25 18:42:40 -07:00
Sensor.cpp 9-axis sensor fusion with Kalman filter 2011-05-27 17:04:55 -07:00
SensorChannel.cpp first step at implementing the native sensor support 2010-07-13 22:21:56 -07:00
SensorEventQueue.cpp Fix typo which causes sensors to fail miserably 2010-09-16 21:41:13 -07:00
SensorManager.cpp new SensorService 2010-07-19 17:57:29 -07:00
Surface.cpp Add method to create a ParcelSurfaceTexture from android.view.Surface. 2011-06-22 16:18:09 -07:00
SurfaceComposerClient.cpp unify SurfaceTexture and Surface 2011-06-13 15:51:35 -07:00
SurfaceTexture.cpp SurfaceTexture: change onFrameAvailable behavior 2011-06-27 15:45:39 -07:00
SurfaceTextureClient.cpp SurfaceTexture: fix a NULL ptr dereference. 2011-06-20 14:16:49 -07:00