replicant-frameworks_native/libs/gui
Dan Stoza f0eaf25e92 BufferQueue: Add producer buffer-released callback
Add a callback to the producer side, onBufferReleased, which will be
called every time the consumer releases a buffer back to the
BufferQueue. This will enable a buffer stream splitter to work
autonomously without having to block on dequeueBuffer.

The binder object used for the callback replaces the generic IBinder
token that was passed into IGraphicBufferProducer::connect to detect
the death of the producer. If a producer does not wish to listen for
buffer release events, it can pass in an instance of the
DummyProducerListener class defined in IProducerListener.h, if it even
cares about death events (BufferQueue doesn't enforce the token being
non-NULL, though perhaps we should).

Change-Id: I23935760673524abeafea2b58dccc3583b368710
2014-03-31 14:10:07 -07:00
..
tests BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
Android.mk BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
BitTube.cpp
BufferItem.cpp Change BufferQueue into producer/consumer wrapper 2014-03-04 15:58:03 -08:00
BufferItemConsumer.cpp BufferItemConsumer: Use IGBC instead of BQ 2014-03-13 11:12:04 -07:00
BufferQueue.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
BufferQueueConsumer.cpp Merge "Add sideband streams to BufferQueue and related classes" 2014-03-13 20:28:17 +00:00
BufferQueueCore.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
BufferQueueProducer.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
BufferSlot.cpp Change BufferQueue into producer/consumer wrapper 2014-03-04 15:58:03 -08:00
CleanSpec.mk
ConsumerBase.cpp Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
CpuConsumer.cpp
DisplayEventReceiver.cpp
GLConsumer.cpp
GraphicBufferAlloc.cpp
GuiConfig.cpp
IConsumerListener.cpp Add sideband streams to BufferQueue and related classes 2014-03-11 12:23:14 -07:00
IDisplayEventConnection.cpp
IGraphicBufferAlloc.cpp
IGraphicBufferConsumer.cpp BufferQueue: Test remote producer and consumer 2014-03-21 11:16:54 -07:00
IGraphicBufferProducer.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
IProducerListener.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
ISensorEventConnection.cpp
ISensorServer.cpp
ISurfaceComposer.cpp
ISurfaceComposerClient.cpp
LayerState.cpp
Sensor.cpp
SensorEventQueue.cpp
SensorManager.cpp
Surface.cpp BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
SurfaceComposerClient.cpp Remove deprecated BufferQueue constructor 2014-03-13 11:39:09 -07:00
SurfaceControl.cpp
SyncFeatures.cpp