Merge "libgui: Add a union to BufferItem for refactoring"

This commit is contained in:
Dan Stoza 2015-03-13 15:41:46 +00:00 committed by Android (Google) Code Review
commit 59cb7412a0

View File

@ -86,8 +86,13 @@ class BufferItem : public Flattenable<BufferItem> {
// mFrameNumber is the number of the queued frame for this slot. // mFrameNumber is the number of the queued frame for this slot.
uint64_t mFrameNumber; uint64_t mFrameNumber;
// mSlot is the slot index of this buffer (default INVALID_BUFFER_SLOT). union {
int mSlot; // 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 // mIsDroppable whether this buffer was queued with the
// property that it can be replaced by a new buffer for the purpose of // property that it can be replaced by a new buffer for the purpose of