Merge "libgui: Add BufferItem(IGBC::BufferItem)"
This commit is contained in:
commit
3c0876f4bf
@ -44,6 +44,7 @@ class BufferItem : public Flattenable<BufferItem> {
|
|||||||
// The default value of mBuf, used to indicate this doesn't correspond to a slot.
|
// The default value of mBuf, used to indicate this doesn't correspond to a slot.
|
||||||
enum { INVALID_BUFFER_SLOT = -1 };
|
enum { INVALID_BUFFER_SLOT = -1 };
|
||||||
BufferItem();
|
BufferItem();
|
||||||
|
BufferItem(const IGraphicBufferConsumer::BufferItem& item);
|
||||||
~BufferItem();
|
~BufferItem();
|
||||||
operator IGraphicBufferConsumer::BufferItem() const;
|
operator IGraphicBufferConsumer::BufferItem() const;
|
||||||
|
|
||||||
|
@ -37,6 +37,21 @@ BufferItem::BufferItem() :
|
|||||||
mCrop.makeInvalid();
|
mCrop.makeInvalid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BufferItem::BufferItem(const IGraphicBufferConsumer::BufferItem& item) :
|
||||||
|
mGraphicBuffer(item.mGraphicBuffer),
|
||||||
|
mFence(item.mFence),
|
||||||
|
mCrop(item.mCrop),
|
||||||
|
mTransform(item.mTransform),
|
||||||
|
mScalingMode(item.mScalingMode),
|
||||||
|
mTimestamp(item.mTimestamp),
|
||||||
|
mIsAutoTimestamp(item.mIsAutoTimestamp),
|
||||||
|
mDataSpace(item.mDataSpace),
|
||||||
|
mFrameNumber(item.mFrameNumber),
|
||||||
|
mSlot(item.mBuf),
|
||||||
|
mIsDroppable(item.mIsDroppable),
|
||||||
|
mAcquireCalled(item.mAcquireCalled),
|
||||||
|
mTransformToDisplayInverse(item.mTransformToDisplayInverse) {}
|
||||||
|
|
||||||
BufferItem::~BufferItem() {}
|
BufferItem::~BufferItem() {}
|
||||||
|
|
||||||
BufferItem::operator IGraphicBufferConsumer::BufferItem() const {
|
BufferItem::operator IGraphicBufferConsumer::BufferItem() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user