OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e095b2
)
fix typo that broke all the builds
author
Mathias Agopian
<mathias@google.com>
Tue, 20 Nov 2012 00:50:24 +0000
(16:50 -0800)
committer
Mathias Agopian
<mathias@google.com>
Tue, 20 Nov 2012 00:50:24 +0000
(16:50 -0800)
Bug:
7584338
Change-Id: Ieb8c27a544ac583af9aa1e0376e33a673d2d9673
libs/gui/BufferQueue.cpp
patch
|
blob
|
history
diff --git
a/libs/gui/BufferQueue.cpp
b/libs/gui/BufferQueue.cpp
index
607e0bd
..
086e298
100644
(file)
--- a/
libs/gui/BufferQueue.cpp
+++ b/
libs/gui/BufferQueue.cpp
@@
-314,12
+314,9
@@
status_t BufferQueue::dequeueBuffer(int *outBuf, sp<Fence>& outFence,
* the consumer may still have pending reads of the
* buffers in flight.
*/
- if (found >= 0) {
- bool isOlder = mSlots[i].mFrameNumber <
- mSlots[found].mFrameNumber;
- if (isOlder) {
- found = i;
- }
+ if ((found < 0) ||
+ mSlots[i].mFrameNumber < mSlots[found].mFrameNumber) {
+ found = i;
}
}
}