diff options
| author | 2014-03-24 15:03:46 -0700 | |
|---|---|---|
| committer | 2014-03-24 15:03:46 -0700 | |
| commit | 2443c7903c6910b57bcc615a4bf2e60068c15dbd (patch) | |
| tree | 178aea4f0836ef0ce27fec53d86d5d5a3ae6d156 /libs/gui/BufferQueueProducer.cpp | |
| parent | 5cd13e5183b272dce7a352614ebe00f485c05689 (diff) | |
BufferQueue: Set attached buffers as requested
When a buffer is attached to the producer side, it needs to be marked
as having been requested so that it can be queued successfully.
Change-Id: I90a88b332c415a57921bd094ae635afdf65bff99
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
| -rw-r--r-- | libs/gui/BufferQueueProducer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index 7db344a759..9dd90bab58 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -432,6 +432,7 @@ status_t BufferQueueProducer::attachBuffer(int* outSlot, mSlots[*outSlot].mBufferState = BufferSlot::DEQUEUED; mSlots[*outSlot].mEglFence = EGL_NO_SYNC_KHR; mSlots[*outSlot].mFence = Fence::NO_FENCE; + mSlots[*outSlot].mRequestBufferCalled = true; return returnFlags; } |