summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-01-28 12:03:52 -0800
committerJamie Gennis <jgennis@google.com>2011-01-28 12:08:18 -0800
commit6913062faabb1eb84e20de1e8e8e42a4932fde70 (patch)
tree22d592dac54c8d236684f2673bbdfc79be208c03 /libs
parenta9f27fa631ab21d52c75842ccaacc1cbcd75fca0 (diff)
downloadframeworks_base-6913062faabb1eb84e20de1e8e8e42a4932fde70.zip
frameworks_base-6913062faabb1eb84e20de1e8e8e42a4932fde70.tar.gz
frameworks_base-6913062faabb1eb84e20de1e8e8e42a4932fde70.tar.bz2
Quiet the SurfaceFlingerClient dequeueBuffer error.
This is a temporary WAR for the case where dequeueBuffer is called when all the buffers owned by a SurfaceTexture are not available - either they're the current texture buffer or the next one. Currently, an error is returned in that case, and this change just prevents that error from being logged. In the future this will be fixed to not return an error in that case. Bug: 3356050 Change-Id: Ic6cc304881a63ce134cfd0bcb4265e3e3fa94b6a
Diffstat (limited to 'libs')
-rw-r--r--libs/gui/SurfaceTextureClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/SurfaceTextureClient.cpp b/libs/gui/SurfaceTextureClient.cpp
index 0ed8be5..c0e4e0f 100644
--- a/libs/gui/SurfaceTextureClient.cpp
+++ b/libs/gui/SurfaceTextureClient.cpp
@@ -88,7 +88,7 @@ int SurfaceTextureClient::dequeueBuffer(android_native_buffer_t** buffer) {
int buf = -1;
status_t err = mSurfaceTexture->dequeueBuffer(&buf);
if (err < 0) {
- LOGE("dequeueBuffer: ISurfaceTexture::dequeueBuffer failed: %d", err);
+ LOGV("dequeueBuffer: ISurfaceTexture::dequeueBuffer failed: %d", err);
return err;
}
sp<GraphicBuffer>& gbuf(mSlots[buf]);