diff options
| author | 2015-04-07 18:14:37 +0000 | |
|---|---|---|
| committer | 2015-04-07 18:14:50 +0000 | |
| commit | 11da530a704fc9406d6779c5b985d3394c6a8474 (patch) | |
| tree | 0ccc284b29a954b5af201192d0edd0af7fb129c8 /include/gui/BufferItem.h | |
| parent | 7b5f82d8d726e4bcd21c19340c0743a728bc0253 (diff) | |
| parent | 1c2001efcf56d7f65242249fa4e5833f03a68e37 (diff) | |
Merge "Cherry-pick dataSpace and BufferItem changes" into lmp-mr1-dev-plus-aosp
Diffstat (limited to 'include/gui/BufferItem.h')
| -rw-r--r-- | include/gui/BufferItem.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/gui/BufferItem.h b/include/gui/BufferItem.h index 01b6ff4b54..112c482937 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(const IGraphicBufferConsumer::BufferItem& item); ~BufferItem(); operator IGraphicBufferConsumer::BufferItem() const; @@ -78,11 +79,21 @@ class BufferItem : public Flattenable<BufferItem> { // automatically when the buffer was queued. bool mIsAutoTimestamp; + // mDataSpace is the current dataSpace value for this buffer slot. This gets + // set by queueBuffer each time this slot is queued. The meaning of the + // dataSpace is format-dependent. + android_dataspace mDataSpace; + // mFrameNumber is the number of the queued frame for this slot. uint64_t mFrameNumber; - // mSlot is the slot index of this buffer (default INVALID_BUFFER_SLOT). - int mSlot; + union { + // mSlot is the slot index of this buffer (default INVALID_BUFFER_SLOT). + int mSlot; + + // mBuf is the former name for mSlot + int mBuf; + }; // mIsDroppable whether this buffer was queued with the // property that it can be replaced by a new buffer for the purpose of |