sdm: comply with treble guidelines
- Replace egl.swapinterval with macro name
CRs-Fixed: 2206249
Change-Id: I5a90823fc0496ab764de33be5322c07aa94280a4
diff --git a/include/display_properties.h b/include/display_properties.h
index 7295899..df29eb0 100644
--- a/include/display_properties.h
+++ b/include/display_properties.h
@@ -88,12 +88,13 @@
#define DISABLE_HDR_LUT_GEN DISPLAY_PROP("disable_hdr_lut_gen")
#define ENABLE_DEFAULT_COLOR_MODE DISPLAY_PROP("enable_default_color_mode")
-#define DISABLE_HDR DISPLAY_PROP("disable_hdr")
+#define DISABLE_HDR DISPLAY_PROP("hwc_disable_hdr")
#define HDR_CONFIG_PROP RO_DISPLAY_PROP("hdr.config")
#define QDCM_PCC_TRANS_PROP DISPLAY_PROP("qdcm.pcc_for_trans")
#define QDCM_DIAGONAL_MATRIXMODE_PROP DISPLAY_PROP("qdcm.diagonal_matrix_mode")
#define QDCM_DISABLE_TIMEOUT_PROP PERSIST_DISPLAY_PROP("qdcm.disable_timeout")
+#define ZERO_SWAP_INTERVAL "vendor.debug.egl.swapinterval"
#endif // __DISPLAY_PROPERTIES_H__
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp
index a296b03..d54d898 100644
--- a/sdm/libs/hwc2/hwc_display.cpp
+++ b/sdm/libs/hwc2/hwc_display.cpp
@@ -370,7 +370,7 @@
}
int property_swap_interval = 1;
- HWCDebugHandler::Get()->GetProperty("debug.egl.swapinterval", &property_swap_interval);
+ HWCDebugHandler::Get()->GetProperty(ZERO_SWAP_INTERVAL, &property_swap_interval);
if (property_swap_interval == 0) {
swap_interval_zero_ = true;
}