diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2019-07-26 01:14:41 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-07-26 01:14:41 -0700 |
commit | e7222e905e85b48a0917b9da36d31e76271e530d (patch) | |
tree | 0ad23c3c2dcb84225549420ca3c920b2b3f2a4d7 /sdm/libs/hwc2/hwc_session.cpp | |
parent | d2e7b631488150d8db29139d1d209a7989cb2408 (diff) | |
parent | 4a6320c7a4bd77842d9c534acff22fc4ef8eee91 (diff) |
Merge "hwc2: Enforce to update color mode when panel reset" into display.lnx.5.1
Diffstat (limited to 'sdm/libs/hwc2/hwc_session.cpp')
-rw-r--r-- | sdm/libs/hwc2/hwc_session.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_session.cpp b/sdm/libs/hwc2/hwc_session.cpp index c83b887f..0037461c 100644 --- a/sdm/libs/hwc2/hwc_session.cpp +++ b/sdm/libs/hwc2/hwc_session.cpp @@ -2993,7 +2993,8 @@ void HWCSession::DisplayPowerReset() { DLOGE("%d mode for display = %d failed with error = %d", mode, display, status); } ColorMode color_mode = hwc_display_[display]->GetCurrentColorMode(); - status = hwc_display_[display]->SetColorMode(color_mode); + RenderIntent intent = hwc_display_[display]->GetCurrentRenderIntent(); + status = hwc_display_[display]->SetColorModeWithRenderIntent(color_mode, intent); if (status != HWC2::Error::None) { DLOGE("SetColorMode failed for display = %d error = %d", display, status); } |