| 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_message_proxy.h" | 5 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h" |
| 6 | 6 |
| 7 #include "base/task_runner_util.h" | 7 #include "base/task_runner_util.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 const std::vector<float>& correction_matrix) { | 232 const std::vector<float>& correction_matrix) { |
| 233 DCHECK(drm_thread_->IsRunning()); | 233 DCHECK(drm_thread_->IsRunning()); |
| 234 drm_thread_->task_runner()->PostTask( | 234 drm_thread_->task_runner()->PostTask( |
| 235 FROM_HERE, | 235 FROM_HERE, |
| 236 base::Bind(&DrmThread::SetColorCorrection, base::Unretained(drm_thread_), | 236 base::Bind(&DrmThread::SetColorCorrection, base::Unretained(drm_thread_), |
| 237 id, degamma_lut, gamma_lut, correction_matrix)); | 237 id, degamma_lut, gamma_lut, correction_matrix)); |
| 238 } | 238 } |
| 239 | 239 |
| 240 void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback( | 240 void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback( |
| 241 gfx::AcceleratedWidget widget, | 241 gfx::AcceleratedWidget widget, |
| 242 const std::vector<OverlayCheck_Params>& overlays) const { | 242 const std::vector<OverlayCheck_Params>& overlays, |
| 243 sender_->Send(new OzoneHostMsg_OverlayCapabilitiesReceived(widget, overlays)); | 243 const std::vector<OverlayCheckReturn_Params>& returns) const { |
| 244 sender_->Send( |
| 245 new OzoneHostMsg_OverlayCapabilitiesReceived(widget, overlays, returns)); |
| 244 } | 246 } |
| 245 | 247 |
| 246 void DrmThreadMessageProxy::OnRefreshNativeDisplaysCallback( | 248 void DrmThreadMessageProxy::OnRefreshNativeDisplaysCallback( |
| 247 const std::vector<DisplaySnapshot_Params>& displays) const { | 249 const std::vector<DisplaySnapshot_Params>& displays) const { |
| 248 sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(displays)); | 250 sender_->Send(new OzoneHostMsg_UpdateNativeDisplays(displays)); |
| 249 } | 251 } |
| 250 | 252 |
| 251 void DrmThreadMessageProxy::OnConfigureNativeDisplayCallback( | 253 void DrmThreadMessageProxy::OnConfigureNativeDisplayCallback( |
| 252 int64_t display_id, | 254 int64_t display_id, |
| 253 bool success) const { | 255 bool success) const { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 274 display::HDCPState state) const { | 276 display::HDCPState state) const { |
| 275 sender_->Send(new OzoneHostMsg_HDCPStateReceived(display_id, success, state)); | 277 sender_->Send(new OzoneHostMsg_HDCPStateReceived(display_id, success, state)); |
| 276 } | 278 } |
| 277 | 279 |
| 278 void DrmThreadMessageProxy::OnSetHDCPStateCallback(int64_t display_id, | 280 void DrmThreadMessageProxy::OnSetHDCPStateCallback(int64_t display_id, |
| 279 bool success) const { | 281 bool success) const { |
| 280 sender_->Send(new OzoneHostMsg_HDCPStateUpdated(display_id, success)); | 282 sender_->Send(new OzoneHostMsg_HDCPStateUpdated(display_id, success)); |
| 281 } | 283 } |
| 282 | 284 |
| 283 } // namespace ui | 285 } // namespace ui |
| OLD | NEW |