diff options
Diffstat (limited to 'composer/hwc_session.cpp')
-rw-r--r-- | composer/hwc_session.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/composer/hwc_session.cpp b/composer/hwc_session.cpp index 6621a7a6..2fe02c7e 100644 --- a/composer/hwc_session.cpp +++ b/composer/hwc_session.cpp @@ -263,14 +263,14 @@ int HWCSession::Init() { DLOGI("async_vds_creation: %d", async_vds_creation_); value = 0; - Debug::Get()->GetProperty(DISABLE_VDS_HWC, &value); - disable_vds_hwc_ = (value == 1); - DLOGI("disable_vds_hwc: %d", disable_vds_hwc_); + Debug::Get()->GetProperty(DISABLE_NON_WFD_VDS, &value); + disable_non_wfd_vds_ = (value == 1); + DLOGI("disable_non_wfd_vds: %d", disable_non_wfd_vds_); - value = 0; - Debug::Get()->GetProperty(VDS_ALLOW_HWC, &value); - vds_allow_hwc_ = (value == 1); - DLOGI("vds_allow_hwc: %d", vds_allow_hwc_); + char prop_str[64] = {}; + Debug::Get()->GetProperty(ENABLE_HWC_VDS, prop_str); + debug_enable_hwc_vds_ = (strcmp(prop_str, "true") == 0); + DLOGI("debug_enable_hwc_vds: %d", debug_enable_hwc_vds_); DLOGI("Initializing supported display slots"); InitSupportedDisplaySlots(); @@ -631,11 +631,11 @@ void HWCSession::Dump(uint32_t *out_size, char *out_buffer) { } uint32_t HWCSession::GetMaxVirtualDisplayCount() { - if (!disable_vds_hwc_) { + if (!disable_non_wfd_vds_) { return map_info_virtual_.size(); } - return is_client_up_ && !vds_allow_hwc_ ? map_info_virtual_.size() : 0; + return is_client_up_ && !debug_enable_hwc_vds_ ? map_info_virtual_.size() : 0; } int32_t HWCSession::GetActiveConfig(hwc2_display_t display, hwc2_config_t *out_config) { |