Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: ui/ozone/platform/drm/mus_thread_proxy.cc

Issue 2088533002: Refactor ozone drm cursor code for mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/drm/mus_thread_proxy.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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),
21 weak_ptr_factory_(this) {} 21 weak_ptr_factory_(this) {}
22 22
23 void MusThreadProxy::InitializeOnEvdev() {}
24
23 MusThreadProxy::~MusThreadProxy() { 25 MusThreadProxy::~MusThreadProxy() {
24 DCHECK(on_window_server_thread_.CalledOnValidThread()); 26 DCHECK(on_window_server_thread_.CalledOnValidThread());
25 FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_, 27 FOR_EACH_OBSERVER(GpuThreadObserver, gpu_thread_observers_,
26 OnGpuThreadRetired()); 28 OnGpuThreadRetired());
27 } 29 }
28 30
29 // This is configured on the GPU thread. 31 // This is configured on the GPU thread.
30 void MusThreadProxy::SetDrmThread(DrmThread* thread) { 32 void MusThreadProxy::SetDrmThread(DrmThread* thread) {
31 base::AutoLock acquire(lock_); 33 base::AutoLock acquire(lock_);
32 drm_thread_ = thread; 34 drm_thread_ = thread;
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 display_manager_->GpuReceivedHDCPState(display_id, success, state); 332 display_manager_->GpuReceivedHDCPState(display_id, success, state);
331 } 333 }
332 334
333 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id, 335 void MusThreadProxy::GpuSetHDCPStateCallback(int64_t display_id,
334 bool success) const { 336 bool success) const {
335 DCHECK(on_window_server_thread_.CalledOnValidThread()); 337 DCHECK(on_window_server_thread_.CalledOnValidThread());
336 display_manager_->GpuUpdatedHDCPState(display_id, success); 338 display_manager_->GpuUpdatedHDCPState(display_id, success);
337 } 339 }
338 340
339 } // namespace ui 341 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/mus_thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698