diff options
author | Pullakavi Srinivas <spullaka@codeaurora.org> | 2018-03-07 15:15:14 +0530 |
---|---|---|
committer | Pullakavi Srinivas <spullaka@codeaurora.org> | 2018-09-04 11:05:48 +0530 |
commit | 3dbb0d9826007be37b96847a798a932099c71632 (patch) | |
tree | 20a24ac1adbe5840f92dd701320b7b5daee19288 /sdm/libs/hwc2/hwc_layers.cpp | |
parent | 5b428dcb384c6baf80ed9474c4d5e865267edef2 (diff) |
hwc2: Avoid overwriting metadata refresh rate.
-- Compute sanitized metadata refresh rate.
-- Populate display's operating refresh rate to all
the layers that donot support metadata refresh rate.
Change-Id: Iaf17e4e10da543e110fcf6ba7648d60807069f98
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index eb650157..94f1a611 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -805,6 +805,7 @@ DisplayError HWCLayer::SetMetaData(const private_handle_t *pvt_handle, Layer *la uint32_t frame_rate = layer->frame_rate; if (getMetaData(handle, GET_REFRESH_RATE, &fps) == 0) { frame_rate = (fps != 0) ? RoundToStandardFPS(fps) : layer->frame_rate; + has_metadata_refresh_rate_ = true; } int32_t interlaced = 0; |