| Index: ui/ozone/platform/drm/gpu/drm_display.cc
|
| diff --git a/ui/ozone/platform/drm/gpu/drm_display.cc b/ui/ozone/platform/drm/gpu/drm_display.cc
|
| index 6ff1033cffb24f68b19ce291e92fb64dafec1806..8f7bdc588c0171ce779c2beffd41df5aa7a56a41 100644
|
| --- a/ui/ozone/platform/drm/gpu/drm_display.cc
|
| +++ b/ui/ozone/platform/drm/gpu/drm_display.cc
|
| @@ -174,17 +174,10 @@ void DrmDisplay::SetColorCorrection(
|
| const std::vector<GammaRampRGBEntry>& degamma_lut,
|
| const std::vector<GammaRampRGBEntry>& gamma_lut,
|
| const std::vector<float>& correction_matrix) {
|
| - if (degamma_lut.empty()) {
|
| - if (!drm_->SetGammaRamp(crtc_, gamma_lut)) {
|
| - LOG(ERROR) << "Failed to set gamma ramp for display: crtc_id = " << crtc_
|
| - << " size = " << gamma_lut.size();
|
| - }
|
| - } else {
|
| - if (!drm_->SetColorCorrection(crtc_, degamma_lut, gamma_lut,
|
| - correction_matrix)) {
|
| - LOG(ERROR) << "Failed to set color correction for display: crtc_id = "
|
| - << crtc_;
|
| - }
|
| + if (!drm_->SetColorCorrection(crtc_, degamma_lut, gamma_lut,
|
| + correction_matrix)) {
|
| + LOG(ERROR) << "Failed to set color correction for display: crtc_id = "
|
| + << crtc_;
|
| }
|
| }
|
|
|
|
|