summaryrefslogtreecommitdiffstats
path: root/tests/hardware
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-05-06 15:56:59 -0700
committerMichael Lentine <mlentine@google.com>2014-07-14 14:09:13 -0700
commite83d10c1fc61ac7921d58d8818a9ad4926a207ad (patch)
treeaaebebd6119dca731b253ed456bb2c6b0293a1a0 /tests/hardware
parent549e6be33d9e87408260b53d8bdc1019ac92101f (diff)
downloadhardware_libhardware-e83d10c1fc61ac7921d58d8818a9ad4926a207ad.zip
hardware_libhardware-e83d10c1fc61ac7921d58d8818a9ad4926a207ad.tar.gz
hardware_libhardware-e83d10c1fc61ac7921d58d8818a9ad4926a207ad.tar.bz2
hwcomposer: Allow display configuration selection
Adds two functions to the HWC interface: one for querying the current display configuration, and one for setting a new configuration. This will enable DisplayManager to change the mode on demand. Bug: 14320401 Change-Id: I556c509192b877b38b2103a78f937b3687f35546
Diffstat (limited to 'tests/hardware')
-rw-r--r--tests/hardware/struct-offset.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp
index 8e5aa40..2354408 100644
--- a/tests/hardware/struct-offset.cpp
+++ b/tests/hardware/struct-offset.cpp
@@ -167,7 +167,9 @@ void CheckOffsets(void) {
CHECK_MEMBER_AT(hwc_composer_device_1_t, dump, 88, 168);
CHECK_MEMBER_AT(hwc_composer_device_1_t, getDisplayConfigs, 92, 176);
CHECK_MEMBER_AT(hwc_composer_device_1_t, getDisplayAttributes, 96, 184);
- CHECK_MEMBER_AT(hwc_composer_device_1_t, reserved_proc, 100, 192);
+ CHECK_MEMBER_AT(hwc_composer_device_1_t, getActiveConfig, 100, 192);
+ CHECK_MEMBER_AT(hwc_composer_device_1_t, setActiveConfig, 104, 200);
+ CHECK_MEMBER_AT(hwc_composer_device_1_t, reserved_proc, 108, 208);
//Types defined in gralloc.h
CHECK_MEMBER_AT(gralloc_module_t, common, 0, 0);