diff options
| author | 2012-04-09 22:51:52 -0700 | |
|---|---|---|
| committer | 2012-04-09 23:21:33 -0700 | |
| commit | fbcda930dd8b2823cfeb160fd0131f5897b7522f (patch) | |
| tree | adb4715bcfd81601323259fcfa872f99cf891d36 /libs/gui/SurfaceTextureClient.cpp | |
| parent | abe61bfda4938abd932465e27c29ba9e41aea606 (diff) | |
BufferQueue returns proper code on acquire
Also removed unnecessary debug messages from
SurfaceTextureClient.
Change-Id: I291897a44170142f9d42a007b008823fad4683e0
Diffstat (limited to 'libs/gui/SurfaceTextureClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceTextureClient.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp index 6aa81a96c0..5fb54167f3 100644 --- a/libs/gui/SurfaceTextureClient.cpp +++ b/libs/gui/SurfaceTextureClient.cpp @@ -200,23 +200,6 @@ int SurfaceTextureClient::getSlotFromBufferLocked( android_native_buffer_t* buffer) const { bool dumpedState = false; for (int i = 0; i < NUM_BUFFER_SLOTS; i++) { - // XXX: Dump the slots whenever we hit a NULL entry while searching for - // a buffer. - if (mSlots[i] == NULL) { - if (!dumpedState) { - ALOGD("getSlotFromBufferLocked: encountered NULL buffer in slot %d " - "looking for buffer %p", i, buffer->handle); - for (int j = 0; j < NUM_BUFFER_SLOTS; j++) { - if (mSlots[j] == NULL) { - ALOGD("getSlotFromBufferLocked: %02d: NULL", j); - } else { - ALOGD("getSlotFromBufferLocked: %02d: %p", j, mSlots[j]->handle); - } - } - dumpedState = true; - } - } - if (mSlots[i] != NULL && mSlots[i]->handle == buffer->handle) { return i; } |