OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/host/drm_native_display_delegate.h" | 5 #include "ui/ozone/platform/drm/host/drm_native_display_delegate.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 return std::vector<ColorCalibrationProfile>(); | 203 return std::vector<ColorCalibrationProfile>(); |
204 } | 204 } |
205 | 205 |
206 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile( | 206 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile( |
207 const DisplaySnapshot& output, | 207 const DisplaySnapshot& output, |
208 ColorCalibrationProfile new_profile) { | 208 ColorCalibrationProfile new_profile) { |
209 NOTIMPLEMENTED(); | 209 NOTIMPLEMENTED(); |
210 return false; | 210 return false; |
211 } | 211 } |
212 | 212 |
| 213 bool DrmNativeDisplayDelegate::SetGammaRamp( |
| 214 const ui::DisplaySnapshot& output, |
| 215 const std::vector<GammaRampRGBEntry>& lut) { |
| 216 proxy_->Send(new OzoneGpuMsg_SetGammaRamp(output.display_id(), lut)); |
| 217 return true; |
| 218 } |
| 219 |
213 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 220 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
214 observers_.AddObserver(observer); | 221 observers_.AddObserver(observer); |
215 } | 222 } |
216 | 223 |
217 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 224 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
218 observers_.RemoveObserver(observer); | 225 observers_.RemoveObserver(observer); |
219 } | 226 } |
220 | 227 |
221 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { | 228 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { |
222 if (event.device_type() != DeviceEvent::DISPLAY) | 229 if (event.device_type() != DeviceEvent::DISPLAY) |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 configure_callback_map_.erase(it); | 341 configure_callback_map_.erase(it); |
335 } | 342 } |
336 } | 343 } |
337 | 344 |
338 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( | 345 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( |
339 const GetDisplaysCallback& callback) const { | 346 const GetDisplaysCallback& callback) const { |
340 callback.Run(displays_.get()); | 347 callback.Run(displays_.get()); |
341 } | 348 } |
342 | 349 |
343 } // namespace ui | 350 } // namespace ui |
OLD | NEW |