replicant-frameworks_native/libs
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
..
binder Merge "Allow creation of heaps that are read-only to partner" 2014-03-27 22:28:11 +00:00
diskusage Report actual disk space used 2013-05-01 10:10:59 -07:00
gui BufferQueue: Add producer buffer-released callback 2014-03-31 14:10:07 -07:00
input Generate ACTION_CANCEL on joystick disconnect. 2014-03-20 01:54:00 +00:00
ui Added null check 2014-03-17 16:48:23 -07:00