summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Dan Stoza <stoza@google.com> 2014-04-21 16:11:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2014-04-21 16:11:22 +0000
commitfb39827ebce4637dcba03770f6644cf67e932e06 (patch)
tree711ceada076e0f0d8fb138ac8325f2ef8af52298 /libs/gui/ConsumerBase.cpp
parent017a53851628e967e5e103a467acb602010dffdc (diff)
parentfebd4f4f462444bfcb3f0618d07ac77e3fc1f6ad (diff)
Merge "BufferQueue: Increase max slots from 32 to 64"
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
-rw-r--r--libs/gui/ConsumerBase.cpp4
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);
}
}