summaryrefslogtreecommitdiffstats
path: root/include/ui/egl/android_natives.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-03-15 10:36:01 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-15 10:36:01 -0700
commitceb7cb1460484eda1a3cb9cd271d7caf3a3dcbd1 (patch)
tree244a1d7aa59404ea42890bd80169f158386d32c8 /include/ui/egl/android_natives.h
parent6d4f318f0c836c0c2eac3a1d99debedc6c03578a (diff)
parent02805a40d44fa038549e771ec9a15f52b5fa3538 (diff)
downloadframeworks_base-ceb7cb1460484eda1a3cb9cd271d7caf3a3dcbd1.zip
frameworks_base-ceb7cb1460484eda1a3cb9cd271d7caf3a3dcbd1.tar.gz
frameworks_base-ceb7cb1460484eda1a3cb9cd271d7caf3a3dcbd1.tar.bz2
am 02805a40: Merge "ANativeWindow: add query for the concrete type." into honeycomb-mr1
* commit '02805a40d44fa038549e771ec9a15f52b5fa3538': ANativeWindow: add query for the concrete type.
Diffstat (limited to 'include/ui/egl/android_natives.h')
-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 0ac34d0..0fc1ddf 100644
--- a/include/ui/egl/android_natives.h
+++ b/include/ui/egl/android_natives.h
@@ -110,6 +110,14 @@ enum {
* conjunction with this query.
*/
NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER,
+
+ /* Get the concrete type of a ANativeWindow. See below for the list of
+ * possible return values.
+ *
+ * This query should not be used outside the Android framework and will
+ * likely be removed in the near future.
+ */
+ NATIVE_WINDOW_CONCRETE_TYPE,
};
/* valid operations for the (*perform)() hook */
@@ -142,6 +150,13 @@ enum {
NATIVE_WINDOW_TRANSFORM_ROT_270 = HAL_TRANSFORM_ROT_270,
};
+/* values returned by the NATIVE_WINDOW_CONCRETE_TYPE query */
+enum {
+ NATIVE_WINDOW_FRAMEBUFFER, // FramebufferNativeWindow
+ NATIVE_WINDOW_SURFACE, // Surface
+ NATIVE_WINDOW_SURFACE_TEXTURE_CLIENT, // SurfaceTextureClient
+};
+
struct ANativeWindow
{
#ifdef __cplusplus