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/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "ui/ozone/platform/drm/gpu/drm_thread.h" | 11 #include "ui/ozone/platform/drm/gpu/drm_thread.h" |
12 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h" | 12 #include "ui/ozone/platform/drm/gpu/proxy_helpers.h" |
13 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" | 13 #include "ui/ozone/platform/drm/host/drm_display_host_manager.h" |
14 #include "ui/ozone/platform/drm/host/drm_overlay_manager.h" | 14 #include "ui/ozone/platform/drm/host/drm_overlay_manager.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 MusThreadProxy::MusThreadProxy() | 18 MusThreadProxy::MusThreadProxy() |
19 : ws_task_runner_(base::ThreadTaskRunnerHandle::Get()), | 19 : ws_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
20 drm_thread_(nullptr), | 20 drm_thread_(nullptr), |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 display_manager_->GpuReceivedHDCPState(display_id, success, state); | 330 display_manager_->GpuReceivedHDCPState(display_id, success, state); |
331 } | 331 } |
332 | 332 |
333 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, | 333 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, |
334 bool success) const { | 334 bool success) const { |
335 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 335 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
336 display_manager_->GpuUpdatedHDCPState(display_id, success); | 336 display_manager_->GpuUpdatedHDCPState(display_id, success); |
337 } | 337 } |
338 | 338 |
339 } // namespace ui | 339 } // namespace ui |
OLD | NEW |