summaryrefslogtreecommitdiffstats
path: root/libs/gui
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-08-16 14:07:10 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-08-16 14:07:10 -0700
commit0ba1a16bbb2c7ea5f52691c062613a2309821354 (patch)
tree38772d0f2945c8e8615763f2b4e76ed725d3ee91 /libs/gui
parent3b835a8db09e59321da2c42972690edd5cae9714 (diff)
parente60a0b1e6a29d79b4d0ec0374446cb829bcadee4 (diff)
downloadframeworks_native-0ba1a16bbb2c7ea5f52691c062613a2309821354.zip
frameworks_native-0ba1a16bbb2c7ea5f52691c062613a2309821354.tar.gz
frameworks_native-0ba1a16bbb2c7ea5f52691c062613a2309821354.tar.bz2
am e60a0b1e: Merge "gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired" into klp-dev
* commit 'e60a0b1e6a29d79b4d0ec0374446cb829bcadee4': gui: CpuConsumer::lockNextBuffer change return code when too many bufs acquired
Diffstat (limited to 'libs/gui')
-rw-r--r--libs/gui/CpuConsumer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gui/CpuConsumer.cpp b/libs/gui/CpuConsumer.cpp
index 3db46bc..bff55d1 100644
--- a/libs/gui/CpuConsumer.cpp
+++ b/libs/gui/CpuConsumer.cpp
@@ -72,7 +72,9 @@ status_t CpuConsumer::lockNextBuffer(LockedBuffer *nativeBuffer) {
if (!nativeBuffer) return BAD_VALUE;
if (mCurrentLockedBuffers == mMaxLockedBuffers) {
- return INVALID_OPERATION;
+ CC_LOGW("Max buffers have been locked (%d), cannot lock anymore.",
+ mMaxLockedBuffers);
+ return NOT_ENOUGH_DATA;
}
BufferQueue::BufferItem b;