| 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 return std::vector<ColorCalibrationProfile>(); | 236 return std::vector<ColorCalibrationProfile>(); |
| 237 } | 237 } |
| 238 | 238 |
| 239 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile( | 239 bool DrmNativeDisplayDelegate::SetColorCalibrationProfile( |
| 240 const DisplaySnapshot& output, | 240 const DisplaySnapshot& output, |
| 241 ColorCalibrationProfile new_profile) { | 241 ColorCalibrationProfile new_profile) { |
| 242 NOTIMPLEMENTED(); | 242 NOTIMPLEMENTED(); |
| 243 return false; | 243 return false; |
| 244 } | 244 } |
| 245 | 245 |
| 246 bool DrmNativeDisplayDelegate::SetGammaRamp( |
| 247 const ui::DisplaySnapshot& output, |
| 248 const std::vector<GammaRampRGBEntry>& lut) { |
| 249 proxy_->Send(new OzoneGpuMsg_SetGammaRamp(output.display_id(), lut)); |
| 250 return true; |
| 251 } |
| 252 |
| 246 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 253 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
| 247 observers_.AddObserver(observer); | 254 observers_.AddObserver(observer); |
| 248 } | 255 } |
| 249 | 256 |
| 250 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 257 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
| 251 observers_.RemoveObserver(observer); | 258 observers_.RemoveObserver(observer); |
| 252 } | 259 } |
| 253 | 260 |
| 254 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { | 261 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { |
| 255 if (event.device_type() != DeviceEvent::DISPLAY) | 262 if (event.device_type() != DeviceEvent::DISPLAY) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 set_hdcp_state_callback_map_.erase(it); | 446 set_hdcp_state_callback_map_.erase(it); |
| 440 } | 447 } |
| 441 } | 448 } |
| 442 | 449 |
| 443 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( | 450 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( |
| 444 const GetDisplaysCallback& callback) const { | 451 const GetDisplaysCallback& callback) const { |
| 445 callback.Run(displays_.get()); | 452 callback.Run(displays_.get()); |
| 446 } | 453 } |
| 447 | 454 |
| 448 } // namespace ui | 455 } // namespace ui |
| OLD | NEW |