Loading include/gui/BufferItem.h +8 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -86,9 +87,14 @@ class BufferItem : public Flattenable<BufferItem> { // mFrameNumber is the number of the queued frame for this slot. uint64_t mFrameNumber; 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 // making sure dequeueBuffer() won't block. Loading include/gui/BufferItemConsumer.h +4 −2 Original line number Diff line number Diff line Loading @@ -76,7 +76,9 @@ class BufferItemConsumer: public ConsumerBase // // If waitForFence is true, and the acquired BufferItem has a valid fence object, // acquireBuffer will wait on the fence with no timeout before returning. status_t acquireBuffer(BufferItem *item, nsecs_t presentWhen, status_t acquireBuffer(BufferQueue::BufferItem *item, nsecs_t presentWhen, bool waitForFence = true); status_t acquireBuffer(android::BufferItem* item, nsecs_t presentWhen, bool waitForFence = true); // Returns an acquired buffer to the queue, allowing it to be reused. Since Loading include/gui/BufferQueueConsumer.h +2 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,8 @@ public: // is CLOCK_MONOTONIC. virtual status_t acquireBuffer(BufferItem* outBuffer, nsecs_t expectedPresent); virtual status_t acquireBuffer(android::BufferItem* outBuffer, nsecs_t expectedPresent); // See IGraphicBufferConsumer::detachBuffer virtual status_t detachBuffer(int slot); Loading include/gui/ConsumerBase.h +2 −2 Original line number Diff line number Diff line Loading @@ -153,8 +153,8 @@ protected: // initialization that must take place the first time a buffer is assigned // to a slot. If it is overridden the derived class's implementation must // call ConsumerBase::acquireBufferLocked. virtual status_t acquireBufferLocked(IGraphicBufferConsumer::BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen); // releaseBufferLocked relinquishes control over a buffer, returning that // control to the BufferQueue. Loading include/gui/GLConsumer.h +2 −2 Original line number Diff line number Diff line Loading @@ -241,8 +241,8 @@ protected: // acquireBufferLocked overrides the ConsumerBase method to update the // mEglSlots array in addition to the ConsumerBase behavior. virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(IGraphicBufferConsumer::BufferItem *item, nsecs_t presentWhen); // releaseBufferLocked overrides the ConsumerBase method to update the // mEglSlots array in addition to the ConsumerBase. Loading Loading
include/gui/BufferItem.h +8 −2 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -86,9 +87,14 @@ class BufferItem : public Flattenable<BufferItem> { // mFrameNumber is the number of the queued frame for this slot. uint64_t mFrameNumber; 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 // making sure dequeueBuffer() won't block. Loading
include/gui/BufferItemConsumer.h +4 −2 Original line number Diff line number Diff line Loading @@ -76,7 +76,9 @@ class BufferItemConsumer: public ConsumerBase // // If waitForFence is true, and the acquired BufferItem has a valid fence object, // acquireBuffer will wait on the fence with no timeout before returning. status_t acquireBuffer(BufferItem *item, nsecs_t presentWhen, status_t acquireBuffer(BufferQueue::BufferItem *item, nsecs_t presentWhen, bool waitForFence = true); status_t acquireBuffer(android::BufferItem* item, nsecs_t presentWhen, bool waitForFence = true); // Returns an acquired buffer to the queue, allowing it to be reused. Since Loading
include/gui/BufferQueueConsumer.h +2 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,8 @@ public: // is CLOCK_MONOTONIC. virtual status_t acquireBuffer(BufferItem* outBuffer, nsecs_t expectedPresent); virtual status_t acquireBuffer(android::BufferItem* outBuffer, nsecs_t expectedPresent); // See IGraphicBufferConsumer::detachBuffer virtual status_t detachBuffer(int slot); Loading
include/gui/ConsumerBase.h +2 −2 Original line number Diff line number Diff line Loading @@ -153,8 +153,8 @@ protected: // initialization that must take place the first time a buffer is assigned // to a slot. If it is overridden the derived class's implementation must // call ConsumerBase::acquireBufferLocked. virtual status_t acquireBufferLocked(IGraphicBufferConsumer::BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen); // releaseBufferLocked relinquishes control over a buffer, returning that // control to the BufferQueue. Loading
include/gui/GLConsumer.h +2 −2 Original line number Diff line number Diff line Loading @@ -241,8 +241,8 @@ protected: // acquireBufferLocked overrides the ConsumerBase method to update the // mEglSlots array in addition to the ConsumerBase behavior. virtual status_t acquireBufferLocked(BufferQueue::BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(BufferItem *item, nsecs_t presentWhen); virtual status_t acquireBufferLocked(IGraphicBufferConsumer::BufferItem *item, nsecs_t presentWhen); // releaseBufferLocked overrides the ConsumerBase method to update the // mEglSlots array in addition to the ConsumerBase. Loading