| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mus_thread_proxy.h" | 5 #include "ui/ozone/platform/drm/mus_thread_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/task_runner.h" | 9 #include "base/task_runner.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 326 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 327 drm_thread_->task_runner()->PostTask( | 327 drm_thread_->task_runner()->PostTask( |
| 328 FROM_HERE, | 328 FROM_HERE, |
| 329 base::Bind(&DrmThread::SetColorCorrection, base::Unretained(drm_thread_), | 329 base::Bind(&DrmThread::SetColorCorrection, base::Unretained(drm_thread_), |
| 330 id, degamma_lut, gamma_lut, correction_matrix)); | 330 id, degamma_lut, gamma_lut, correction_matrix)); |
| 331 return true; | 331 return true; |
| 332 } | 332 } |
| 333 | 333 |
| 334 void MusThreadProxy::GpuCheckOverlayCapabilitiesCallback( | 334 void MusThreadProxy::GpuCheckOverlayCapabilitiesCallback( |
| 335 gfx::AcceleratedWidget widget, | 335 gfx::AcceleratedWidget widget, |
| 336 const std::vector<OverlayCheck_Params>& overlays) const { | 336 const std::vector<OverlayCheck_Params>& overlays, |
| 337 const std::vector<OverlayCheckReturn_Params>& returns) const { |
| 337 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 338 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 338 overlay_manager_->GpuSentOverlayResult(widget, overlays); | 339 overlay_manager_->GpuSentOverlayResult(widget, overlays, returns); |
| 339 } | 340 } |
| 340 | 341 |
| 341 void MusThreadProxy::GpuConfigureNativeDisplayCallback(int64_t display_id, | 342 void MusThreadProxy::GpuConfigureNativeDisplayCallback(int64_t display_id, |
| 342 bool success) const { | 343 bool success) const { |
| 343 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 344 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 344 display_manager_->GpuConfiguredDisplay(display_id, success); | 345 display_manager_->GpuConfiguredDisplay(display_id, success); |
| 345 } | 346 } |
| 346 | 347 |
| 347 void MusThreadProxy::GpuRefreshNativeDisplaysCallback( | 348 void MusThreadProxy::GpuRefreshNativeDisplaysCallback( |
| 348 const std::vector<DisplaySnapshot_Params>& displays) const { | 349 const std::vector<DisplaySnapshot_Params>& displays) const { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 373 display_manager_->GpuReceivedHDCPState(display_id, success, state); | 374 display_manager_->GpuReceivedHDCPState(display_id, success, state); |
| 374 } | 375 } |
| 375 | 376 |
| 376 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, | 377 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, |
| 377 bool success) const { | 378 bool success) const { |
| 378 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 379 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 379 display_manager_->GpuUpdatedHDCPState(display_id, success); | 380 display_manager_->GpuUpdatedHDCPState(display_id, success); |
| 380 } | 381 } |
| 381 | 382 |
| 382 } // namespace ui | 383 } // namespace ui |
| OLD | NEW |