summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-03-14 15:00:06 -0700
committerJamie Gennis <jgennis@google.com>2011-03-14 17:47:11 -0700
commitc4ca7c511499693f13622b135637f600ec913e57 (patch)
tree10256c7257fc9c93ee4d53f8cdba2386d7b9a9e6 /include/ui
parent122dd0999f09eedbe42e619b64276633bea60e6a (diff)
downloadframeworks_base-c4ca7c511499693f13622b135637f600ec913e57.zip
frameworks_base-c4ca7c511499693f13622b135637f600ec913e57.tar.gz
frameworks_base-c4ca7c511499693f13622b135637f600ec913e57.tar.bz2
ANativeWindow: add query for the concrete type.
This change adds a query to the ANativeWindow interface for getting the concrete type of the ANativeWindow. Bug: 4086509 Change-Id: I64aa86d72fbca3b52a98e1fc35608737781a3178
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 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