Index: ui/ozone/platform/drm/host/drm_display_host.cc |
diff --git a/ui/ozone/platform/drm/host/drm_display_host.cc b/ui/ozone/platform/drm/host/drm_display_host.cc |
index 9491e4ef2c45853a0a9aa89aaa2247c76db8b022..5a2a7d9ed77e2c2795ed690eea6b87952d11f2f2 100644 |
--- a/ui/ozone/platform/drm/host/drm_display_host.cc |
+++ b/ui/ozone/platform/drm/host/drm_display_host.cc |
@@ -107,6 +107,19 @@ void DrmDisplayHost::SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut) { |
sender_->Send(new OzoneGpuMsg_SetGammaRamp(snapshot_->display_id(), lut)); |
} |
+void DrmDisplayHost::SetColorCorrection( |
+ const std::vector<GammaRampRGBEntry>& degamma_lut, |
+ const std::vector<GammaRampRGBEntry>& gamma_lut, |
+ const float matrix[9]) { |
+ std::vector<float> correction_matrix; |
+ for (int i = 0; i < 9; ++i) { |
+ correction_matrix.push_back(matrix[i]); |
+ } |
+ |
+ sender_->Send(new OzoneGpuMsg_SetColorCorrection( |
+ snapshot_->display_id(), degamma_lut, gamma_lut, correction_matrix)); |
+} |
+ |
void DrmDisplayHost::OnChannelEstablished() { |
is_dummy_ = false; |