diff options
| author | 2015-10-06 11:14:51 -0700 | |
|---|---|---|
| committer | 2015-10-06 11:14:51 -0700 | |
| commit | b687a2814ca9db576eb1ea33dea90ac35cd61bc1 (patch) | |
| tree | 53711a9c63dfb60f7a19b64b7028112b03ce173c /libs/gui/BufferQueueProducer.cpp | |
| parent | 200316cce07b280d46ef3e407dd83f89f72452b8 (diff) | |
BQ: fix Volantis test failures
The Volantis driver will dequeue a buffer in eglCreateWindowSurface.
- Remove the requirement that no buffers be dequeued when calling
setAsyncMode() on a BufferQueueProducer, since this gets called
from eglSwapInterval.
- Modify the tests to call setMaxDequeuedBufferCount before calling
eglCreateWindowSurface.
Change-Id: Icc64e9933f151771bbd57035549cd5928c0b7216
Diffstat (limited to 'libs/gui/BufferQueueProducer.cpp')
| -rw-r--r-- | libs/gui/BufferQueueProducer.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/gui/BufferQueueProducer.cpp b/libs/gui/BufferQueueProducer.cpp index deec3305b8..0cb018ccae 100644 --- a/libs/gui/BufferQueueProducer.cpp +++ b/libs/gui/BufferQueueProducer.cpp @@ -159,14 +159,6 @@ status_t BufferQueueProducer::setAsyncMode(bool async) { return NO_INIT; } - // There must be no dequeued buffers when changing the async mode. - for (int s = 0; s < BufferQueueDefs::NUM_BUFFER_SLOTS; ++s) { - if (mSlots[s].mBufferState == BufferSlot::DEQUEUED) { - BQ_LOGE("setAsyncMode: buffer owned by producer"); - return BAD_VALUE; - } - } - if ((mCore->mMaxAcquiredBufferCount + mCore->mMaxDequeuedBufferCount + (async || mCore->mDequeueBufferCannotBlock ? 1 : 0)) > mCore->mMaxBufferCount) { |