| 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 | |
| 253 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 246 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
| 254 observers_.AddObserver(observer); | 247 observers_.AddObserver(observer); |
| 255 } | 248 } |
| 256 | 249 |
| 257 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 250 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
| 258 observers_.RemoveObserver(observer); | 251 observers_.RemoveObserver(observer); |
| 259 } | 252 } |
| 260 | 253 |
| 261 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { | 254 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { |
| 262 if (event.device_type() != DeviceEvent::DISPLAY) | 255 if (event.device_type() != DeviceEvent::DISPLAY) |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 set_hdcp_state_callback_map_.erase(it); | 439 set_hdcp_state_callback_map_.erase(it); |
| 447 } | 440 } |
| 448 } | 441 } |
| 449 | 442 |
| 450 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( | 443 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( |
| 451 const GetDisplaysCallback& callback) const { | 444 const GetDisplaysCallback& callback) const { |
| 452 callback.Run(displays_.get()); | 445 callback.Run(displays_.get()); |
| 453 } | 446 } |
| 454 | 447 |
| 455 } // namespace ui | 448 } // namespace ui |
| OLD | NEW |