| 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" |
| 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 CursorProxyThread::CursorProxyThread(MusThreadProxy* mus_thread_proxy) |
| 19 : mus_thread_proxy_(mus_thread_proxy) {} |
| 20 CursorProxyThread::~CursorProxyThread() {} |
| 21 |
| 22 void CursorProxyThread::CursorSet(gfx::AcceleratedWidget window, |
| 23 const std::vector<SkBitmap>& bitmaps, |
| 24 const gfx::Point& point, |
| 25 int frame_delay_ms) { |
| 26 mus_thread_proxy_->CursorSet(window, bitmaps, point, frame_delay_ms); |
| 27 } |
| 28 void CursorProxyThread::Move(gfx::AcceleratedWidget window, |
| 29 const gfx::Point& point) { |
| 30 mus_thread_proxy_->Move(window, point); |
| 31 } |
| 32 void CursorProxyThread::InitializeOnEvdev() { |
| 33 mus_thread_proxy_->InitializeOnEvdev(); |
| 34 } |
| 35 |
| 18 MusThreadProxy::MusThreadProxy() | 36 MusThreadProxy::MusThreadProxy() |
| 19 : ws_task_runner_(base::ThreadTaskRunnerHandle::Get()), | 37 : ws_task_runner_(base::ThreadTaskRunnerHandle::Get()), |
| 20 drm_thread_(nullptr), | 38 drm_thread_(nullptr), |
| 21 weak_ptr_factory_(this) {} | 39 weak_ptr_factory_(this) {} |
| 22 | 40 |
| 23 void MusThreadProxy::InitializeOnEvdev() {} | 41 void MusThreadProxy::InitializeOnEvdev() {} |
| 24 | 42 |
| 25 MusThreadProxy::~MusThreadProxy() { | 43 MusThreadProxy::~MusThreadProxy() { |
| 26 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 44 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 27 FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_, | 45 FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_, |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 display_manager_->GpuReceivedHDCPState(display_id, success, state); | 350 display_manager_->GpuReceivedHDCPState(display_id, success, state); |
| 333 } | 351 } |
| 334 | 352 |
| 335 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, | 353 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, |
| 336 bool success) const { | 354 bool success) const { |
| 337 DCHECK(on_window_server_thread_.CalledOnValidThread()); | 355 DCHECK(on_window_server_thread_.CalledOnValidThread()); |
| 338 display_manager_->GpuUpdatedHDCPState(display_id, success); | 356 display_manager_->GpuUpdatedHDCPState(display_id, success); |
| 339 } | 357 } |
| 340 | 358 |
| 341 } // namespace ui | 359 } // namespace ui |
| OLD | NEW |