summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueue.cpp
diff options
context:
space:
mode:
author Eino-Ville Talvala <etalvala@google.com> 2013-08-05 21:10:45 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-08-05 21:10:45 +0000
commit687821c05b5a85db1b172e7599861c803d268a8d (patch)
treeb9c8caee158c10b24cb13442f240395d679d1119 /libs/gui/BufferQueue.cpp
parentd9ba9707b0ab5c53e34d8ce9a5e71c41b85bb8da (diff)
parentf7c6087bcc6a85cc82fd8dd83566550f880600ec (diff)
Merge "BufferQueue: Support query of consumer usage bits"
Diffstat (limited to 'libs/gui/BufferQueue.cpp')
-rw-r--r--libs/gui/BufferQueue.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/gui/BufferQueue.cpp b/libs/gui/BufferQueue.cpp
index ac7f299069..07c2d943a4 100644
--- a/libs/gui/BufferQueue.cpp
+++ b/libs/gui/BufferQueue.cpp
@@ -218,6 +218,9 @@ int BufferQueue::query(int what, int* outValue)
case NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND:
value = (mQueue.size() >= 2);
break;
+ case NATIVE_WINDOW_CONSUMER_USAGE_BITS:
+ value = mConsumerUsageBits;
+ break;
default:
return BAD_VALUE;
}