summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2013-07-30 14:07:08 -0700
committerEino-Ville Talvala <etalvala@google.com>2013-07-30 21:38:13 +0000
commitf88a5b4f887bddd478e9fb35d609b684c54d5204 (patch)
tree0037e7db2423c6301bab6abdb6d0b25042d1d91e
parent13f4c9fb279f1b34a3b47a6eac80b8a09d2d3a79 (diff)
downloadsystem_core-f88a5b4f887bddd478e9fb35d609b684c54d5204.zip
system_core-f88a5b4f887bddd478e9fb35d609b684c54d5204.tar.gz
system_core-f88a5b4f887bddd478e9fb35d609b684c54d5204.tar.bz2
Window: Add query for consumer usage bits.
Bug: 9592202 Change-Id: Ied2fdb985dc59dd9c0f26c515353abdc37f0eb77
-rw-r--r--include/system/window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/system/window.h b/include/system/window.h
index b8a19c8..7ce59e0 100644
--- a/include/system/window.h
+++ b/include/system/window.h
@@ -230,7 +230,13 @@ enum {
* Boolean that indicates whether the consumer is running more than
* one buffer behind the producer.
*/
- NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND = 9
+ NATIVE_WINDOW_CONSUMER_RUNNING_BEHIND = 9,
+
+ /*
+ * The consumer gralloc usage bits currently set by the consumer.
+ * The values are defined in hardware/libhardware/include/gralloc.h.
+ */
+ NATIVE_WINDOW_CONSUMER_USAGE_BITS = 10
};
/* Valid operations for the (*perform)() hook.