summaryrefslogtreecommitdiffstats
path: root/include/hardware/hwcomposer_defs.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2012-08-22 11:42:57 -0700
committerJesse Hall <jessehall@google.com>2012-08-22 12:10:06 -0700
commit43b51d9fdd7a447c9de7bf30960a1963c93ff5c3 (patch)
treeff180815003c85392f02b269ebebc36d26b968eb /include/hardware/hwcomposer_defs.h
parentf4e4624ef78fa72dd976b201c08ceb394564279c (diff)
downloadhardware_libhardware-43b51d9fdd7a447c9de7bf30960a1963c93ff5c3.zip
hardware_libhardware-43b51d9fdd7a447c9de7bf30960a1963c93ff5c3.tar.gz
hardware_libhardware-43b51d9fdd7a447c9de7bf30960a1963c93ff5c3.tar.bz2
Add NUM_DISPLAY_TYPES query and refine display list semantics
Change-Id: I740859bfa2b126edcdf06f7b2c8208770bc864f9
Diffstat (limited to 'include/hardware/hwcomposer_defs.h')
-rw-r--r--include/hardware/hwcomposer_defs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/hardware/hwcomposer_defs.h b/include/hardware/hwcomposer_defs.h
index a5df8f0..f0f97fc 100644
--- a/include/hardware/hwcomposer_defs.h
+++ b/include/hardware/hwcomposer_defs.h
@@ -139,6 +139,12 @@ enum {
* returns the vsync period in nanosecond
*/
HWC_VSYNC_PERIOD = 1,
+
+ /*
+ * availability: HWC_DEVICE_API_VERSION_1_1
+ * returns a mask of supported display types
+ */
+ HWC_DISPLAY_TYPES_SUPPORTED = 2,
};
/* Allowed events for hwc_methods::eventControl() */
@@ -146,6 +152,18 @@ enum {
HWC_EVENT_VSYNC = 0
};
+/* Display types and associated mask bits. */
+enum {
+ HWC_DISPLAY_PRIMARY = 0,
+ HWC_DISPLAY_EXTERNAL = 1, // HDMI, DP, etc.
+ HWC_NUM_DISPLAY_TYPES
+};
+
+enum {
+ HWC_DISPLAY_PRIMARY_BIT = 1 << HWC_DISPLAY_PRIMARY,
+ HWC_DISPLAY_EXTERNAL_BIT = 1 << HWC_DISPLAY_EXTERNAL,
+};
+
/*****************************************************************************/
__END_DECLS