summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-03-09 14:47:56 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-09 14:47:56 -0800
commit6167a390e34981ea92fc6d5458add2da04ee15bc (patch)
tree23be2cff8bade94fb8206d7b686de72fc44af436 /include/ui
parent5c9248f668201a751500f67cc60bd45ff905751a (diff)
parentd2acedf18c9a3527f6e3dc5d578a85fdc0ad4338 (diff)
downloadframeworks_base-6167a390e34981ea92fc6d5458add2da04ee15bc.zip
frameworks_base-6167a390e34981ea92fc6d5458add2da04ee15bc.tar.gz
frameworks_base-6167a390e34981ea92fc6d5458add2da04ee15bc.tar.bz2
Merge "ANativeWindow: add queues-to-window-composer check." into honeycomb-mr1
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/egl/android_natives.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ui/egl/android_natives.h b/include/ui/egl/android_natives.h
index fd83f46..0ac34d0 100644
--- a/include/ui/egl/android_natives.h
+++ b/include/ui/egl/android_natives.h
@@ -95,6 +95,21 @@ enum {
* 5. Queue, dequeue, queue, dequeue, ad infinitum
*/
NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS,
+
+ /* Check whether queueBuffer operations on the ANativeWindow send the buffer
+ * to the window compositor. The query sets the returned 'value' argument
+ * to 1 if the ANativeWindow DOES send queued buffers directly to the window
+ * compositor and 0 if the buffers do not go directly to the window
+ * compositor.
+ *
+ * This can be used to determine whether protected buffer content should be
+ * sent to the ANativeWindow. Note, however, that a result of 1 does NOT
+ * indicate that queued buffers will be protected from applications or users
+ * capturing their contents. If that behavior is desired then some other
+ * mechanism (e.g. the GRALLOC_USAGE_PROTECTED flag) should be used in
+ * conjunction with this query.
+ */
+ NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
};
/* valid operations for the (*perform)() hook */