replicant-frameworks_native/include/gui
Jamie Gennis fa5b40ebb8 libgui: add BQ consumer buffer free notifications
This change adds a new callback for BufferQueue consumers to be notified
when the BufferQueue frees some or all of its buffers.  This is needed
to retain SurfaceTexture behavior where all buffers would be freed when
the producer disconnects.  This change also modifies the
SurfaceTextureGLToGLTest.EglDestroySurfaceUnrefsBuffers test to catch
when the buffers are not freed.

The implementation is a little complicated because it needs to avoid
circular sp<> references across what will be a binder interface (so wp<>
can't be used directly).  It also needs to avoid the possibility of
locking the BufferQueue and consumer (e.g. SurfaceTexture) mutexes in
the wrong order.

This change also includes a few additional fixes and test cleanups.

Change-Id: I27b77d0af15cb4b135f4b63573f634f5f0da2182
2012-03-19 15:09:09 -07:00
..
BitTube.h Rename SensorChannel to BitTube 2011-10-20 18:42:02 -07:00
BufferQueue.h libgui: add BQ consumer buffer free notifications 2012-03-19 15:09:09 -07:00
DisplayEventReceiver.h separate transactions from updates 2012-02-01 20:43:06 -08:00
IDisplayEventConnection.h Improve the VSYNC api a bit. 2011-12-06 22:43:10 -08:00
IGraphicBufferAlloc.h fix libgui header location 2012-02-27 13:03:08 -08:00
ISensorEventConnection.h Rename SensorChannel to BitTube 2011-10-20 18:42:02 -07:00
ISensorServer.h
ISurface.h fix libgui header location 2012-02-27 13:03:08 -08:00
ISurfaceComposer.h fix libgui header location 2012-02-27 13:03:08 -08:00
ISurfaceComposerClient.h fix libgui header location 2012-02-27 13:03:08 -08:00
ISurfaceTexture.h
Sensor.h
SensorEventQueue.h Rename SensorChannel to BitTube 2011-10-20 18:42:02 -07:00
SensorManager.h SensorManager reconnects to sensor service when the later dies 2011-10-16 22:15:23 -07:00
Surface.h fix libgui header location 2012-02-27 13:03:08 -08:00
SurfaceComposerClient.h fix libgui header location 2012-02-27 13:03:08 -08:00
SurfaceTexture.h libgui: add BQ consumer buffer free notifications 2012-03-19 15:09:09 -07:00
SurfaceTextureClient.h SurfaceTexture: Fully refactored from BufferQueue 2012-03-13 14:39:07 -07:00