| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 callback.Run(display_id, success, state); | 235 callback.Run(display_id, success, state); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void DrmThread::SetHDCPState( | 238 void DrmThread::SetHDCPState( |
| 239 int64_t display_id, | 239 int64_t display_id, |
| 240 HDCPState state, | 240 HDCPState state, |
| 241 const base::Callback<void(int64_t, bool)>& callback) { | 241 const base::Callback<void(int64_t, bool)>& callback) { |
| 242 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); | 242 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); |
| 243 } | 243 } |
| 244 | 244 |
| 245 void DrmThread::SetGammaRamp(int64_t id, | 245 void DrmThread::SetColorCorrection( |
| 246 const std::vector<GammaRampRGBEntry>& lut) { | 246 int64_t display_id, |
| 247 display_manager_->SetGammaRamp(id, lut); | 247 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 248 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 249 const std::vector<float>& correction_matrix) { |
| 250 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut, |
| 251 correction_matrix); |
| 248 } | 252 } |
| 249 | 253 |
| 250 } // namespace ui | 254 } // namespace ui |
| OLD | NEW |