Merge "Fix a bug in SurfaceTexture::dequeueBuffer." into honeycomb
This commit is contained in:
commit
0579d57502
@ -131,7 +131,7 @@ status_t SurfaceTexture::dequeueBuffer(int *buf) {
|
|||||||
Mutex::Autolock lock(mMutex);
|
Mutex::Autolock lock(mMutex);
|
||||||
int found = INVALID_BUFFER_SLOT;
|
int found = INVALID_BUFFER_SLOT;
|
||||||
for (int i = 0; i < mBufferCount; i++) {
|
for (int i = 0; i < mBufferCount; i++) {
|
||||||
if (!mSlots[i].mOwnedByClient && i != mCurrentTexture) {
|
if (!mSlots[i].mOwnedByClient && i != mCurrentTexture && i != mLastQueued) {
|
||||||
mSlots[i].mOwnedByClient = true;
|
mSlots[i].mOwnedByClient = true;
|
||||||
found = i;
|
found = i;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user