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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" | 9 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" |
10 #include "ui/ozone/platform/drm/gpu/drm_device_generator.h" | 10 #include "ui/ozone/platform/drm/gpu/drm_device_generator.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 HDCPState state, | 216 HDCPState state, |
217 const base::Callback<void(int64_t, bool)>& callback) { | 217 const base::Callback<void(int64_t, bool)>& callback) { |
218 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); | 218 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); |
219 } | 219 } |
220 | 220 |
221 void DrmThread::SetGammaRamp(int64_t id, | 221 void DrmThread::SetGammaRamp(int64_t id, |
222 const std::vector<GammaRampRGBEntry>& lut) { | 222 const std::vector<GammaRampRGBEntry>& lut) { |
223 display_manager_->SetGammaRamp(id, lut); | 223 display_manager_->SetGammaRamp(id, lut); |
224 } | 224 } |
225 | 225 |
| 226 void DrmThread::SetColorCorrection( |
| 227 int64_t display_id, |
| 228 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 229 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 230 const std::vector<float>& correction_matrix) { |
| 231 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, |
| 232 &correction_matrix[0]); |
| 233 } |
| 234 |
226 } // namespace ui | 235 } // namespace ui |
OLD | NEW |