OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/ozone/platform/drm/gpu/drm_thread.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 callback.Run(display_id, success, state); | 220 callback.Run(display_id, success, state); |
221 } | 221 } |
222 | 222 |
223 void DrmThread::SetHDCPState( | 223 void DrmThread::SetHDCPState( |
224 int64_t display_id, | 224 int64_t display_id, |
225 HDCPState state, | 225 HDCPState state, |
226 const base::Callback<void(int64_t, bool)>& callback) { | 226 const base::Callback<void(int64_t, bool)>& callback) { |
227 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); | 227 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); |
228 } | 228 } |
229 | 229 |
230 void DrmThread::SetGammaRamp(int64_t id, | 230 void DrmThread::SetColorCorrection( |
231 const std::vector<GammaRampRGBEntry>& lut) { | 231 int64_t display_id, |
232 display_manager_->SetGammaRamp(id, lut); | 232 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 233 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 234 const std::vector<float>& correction_matrix) { |
| 235 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, |
| 236 correction_matrix); |
233 } | 237 } |
234 | 238 |
235 } // namespace ui | 239 } // namespace ui |
OLD | NEW |