diff options
| author | 2014-04-09 16:14:51 -0700 | |
|---|---|---|
| committer | 2014-04-18 11:40:14 -0700 | |
| commit | febd4f4f462444bfcb3f0618d07ac77e3fc1f6ad (patch) | |
| tree | 3e3a238271875631580590219deb426441071e70 /libs/gui/ConsumerBase.cpp | |
| parent | 10f91bbf7db6eb999de8f7041a8c7bb0cb809799 (diff) | |
BufferQueue: Increase max slots from 32 to 64
Increases NUM_BUFFER_SLOTS from 32 to 64 and changes the mask
returned by IGBC::getReleasedBuffers from 32 to 64 bits.
Bug: 13174352
Change-Id: Ie8ef0853916cfb91f83881c7241886bb1950f01a
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
| -rw-r--r-- | libs/gui/ConsumerBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp index b6adc54d71..f1b8fa8bb5 100644 --- a/libs/gui/ConsumerBase.cpp +++ b/libs/gui/ConsumerBase.cpp @@ -121,10 +121,10 @@ void ConsumerBase::onBuffersReleased() { return; } - uint32_t mask = 0; + uint64_t mask = 0; mConsumer->getReleasedBuffers(&mask); for (int i = 0; i < BufferQueue::NUM_BUFFER_SLOTS; i++) { - if (mask & (1 << i)) { + if (mask & (1ULL << i)) { freeBufferLocked(i); } } |