diff options
author | 2014-11-04 11:37:46 -0800 | |
---|---|---|
committer | 2014-11-07 10:39:13 -0800 | |
commit | 8dc55396fc9bc425b5e2c82e76a38080f2a655ff (patch) | |
tree | 36dfc0172e525db15531c9074a81096862287edf /include/gui/BufferItem.h | |
parent | 793fc0e13d25bdecda1219999f8be2cb3c121d20 (diff) |
Add a BufferItem parameter to onFrameAvailable
Passes the BufferItem for the queued buffer to the onFrameAvailable
callback so the consumer can track the BufferQueue's contents. Also
adds an onFrameReplaced callback, which is necessary if the consumer
wants to do anything more than simple queue length tracking.
Bug: 18111837
Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
Diffstat (limited to 'include/gui/BufferItem.h')
-rw-r--r-- | include/gui/BufferItem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gui/BufferItem.h b/include/gui/BufferItem.h index 5effd10e04..01b6ff4b54 100644 --- a/include/gui/BufferItem.h +++ b/include/gui/BufferItem.h @@ -44,6 +44,7 @@ class BufferItem : public Flattenable<BufferItem> { // The default value of mBuf, used to indicate this doesn't correspond to a slot. enum { INVALID_BUFFER_SLOT = -1 }; BufferItem(); + ~BufferItem(); operator IGraphicBufferConsumer::BufferItem() const; static const char* scalingModeName(uint32_t scalingMode); |