summaryrefslogtreecommitdiffstats
path: root/include/hardware/hwcomposer_defs.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2013-08-16 11:13:36 -0700
committerJesse Hall <jessehall@google.com>2013-08-16 11:13:36 -0700
commitfc0ff2a8700eb11aef7a961b279d846c8a1c04c5 (patch)
treefe5cfd6a2594c7abb5c51afd460ef3307974693d /include/hardware/hwcomposer_defs.h
parentb98448119351df9ec7453e0ae92ea408b02294db (diff)
downloadhardware_libhardware-fc0ff2a8700eb11aef7a961b279d846c8a1c04c5.zip
hardware_libhardware-fc0ff2a8700eb11aef7a961b279d846c8a1c04c5.tar.gz
hardware_libhardware-fc0ff2a8700eb11aef7a961b279d846c8a1c04c5.tar.bz2
Add HWC_DISPLAY_VIRTUAL and adjust display count constants
Both surfaceflinger and HWC implementations have been defining these themselves, making future changes more difficult. Better to define them centrally, where they can be updated easily. Change-Id: I793158b858c84b2470b05f9ea77cc5a0c7e247f1
Diffstat (limited to 'include/hardware/hwcomposer_defs.h')
-rw-r--r--include/hardware/hwcomposer_defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hardware/hwcomposer_defs.h b/include/hardware/hwcomposer_defs.h
index ce4723c..c69a4bc 100644
--- a/include/hardware/hwcomposer_defs.h
+++ b/include/hardware/hwcomposer_defs.h
@@ -182,12 +182,16 @@ enum {
enum {
HWC_DISPLAY_PRIMARY = 0,
HWC_DISPLAY_EXTERNAL = 1, // HDMI, DP, etc.
- HWC_NUM_DISPLAY_TYPES
+ HWC_DISPLAY_VIRTUAL = 2,
+
+ HWC_NUM_PHYSICAL_DISPLAY_TYPES = 2,
+ HWC_NUM_DISPLAY_TYPES = 3,
};
enum {
HWC_DISPLAY_PRIMARY_BIT = 1 << HWC_DISPLAY_PRIMARY,
HWC_DISPLAY_EXTERNAL_BIT = 1 << HWC_DISPLAY_EXTERNAL,
+ HWC_DISPLAY_VIRTUAL_BIT = 1 << HWC_DISPLAY_VIRTUAL,
};
/*****************************************************************************/