Skip to content

Commit

Permalink
sdm: comply with treble guidelines
Browse files Browse the repository at this point in the history
- Replace egl.swapinterval with macro name

CRs-Fixed: 2206249
Change-Id: I5a90823fc0496ab764de33be5322c07aa94280a4
  • Loading branch information
Uday Kiran Pichika authored and Gerrit - the friendly Code Review server committed Apr 24, 2018
1 parent 5284378 commit c9da917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/display_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,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__
2 changes: 1 addition & 1 deletion sdm/libs/hwc2/hwc_display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ int HWCDisplay::Init() {
}

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;
}
Expand Down

0 comments on commit c9da917

Please sign in to comment.