diff options
Diffstat (limited to 'sdm/libs')
-rw-r--r-- | sdm/libs/hwc2/hwc_display.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp index 091c54a3..8a337a09 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -111,6 +111,10 @@ HWC2::Error HWCColorMode::SetColorModeWithRenderIntent(ColorMode mode, RenderInt return HWC2::Error::Unsupported; } + if (current_color_mode_ == mode && current_render_intent_ == intent) { + return HWC2::Error::None; + } + auto mode_string = color_mode_map_[mode][intent]; DisplayError error = display_intf_->SetColorMode(mode_string); if (error != kErrorNone) { |