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(const ui::DisplaySnapshot& output, |
| 214 const std::vector<uint16_t>& r, |
| 215 const std::vector<uint16_t>& g, |
| 216 const std::vector<uint16_t>& b) { |
| 217 proxy_->Send(new OzoneGpuMsg_SetGammaRamp(output.display_id(), r, g, b)); |
| 218 return true; |
| 219 } |
| 220 |
213 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { | 221 void DrmNativeDisplayDelegate::AddObserver(NativeDisplayObserver* observer) { |
214 observers_.AddObserver(observer); | 222 observers_.AddObserver(observer); |
215 } | 223 } |
216 | 224 |
217 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { | 225 void DrmNativeDisplayDelegate::RemoveObserver(NativeDisplayObserver* observer) { |
218 observers_.RemoveObserver(observer); | 226 observers_.RemoveObserver(observer); |
219 } | 227 } |
220 | 228 |
221 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { | 229 void DrmNativeDisplayDelegate::OnDeviceEvent(const DeviceEvent& event) { |
222 if (event.device_type() != DeviceEvent::DISPLAY) | 230 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); | 342 configure_callback_map_.erase(it); |
335 } | 343 } |
336 } | 344 } |
337 | 345 |
338 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( | 346 void DrmNativeDisplayDelegate::RunUpdateDisplaysCallback( |
339 const GetDisplaysCallback& callback) const { | 347 const GetDisplaysCallback& callback) const { |
340 callback.Run(displays_.get()); | 348 callback.Run(displays_.get()); |
341 } | 349 } |
342 | 350 |
343 } // namespace ui | 351 } // namespace ui |
OLD | NEW |