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

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

Issue 1863113002: Wire up cursor proxy on MUS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@oxygen
Patch Set: Reparent Created 4 years, 8 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 | « no previous file | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | 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/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 DCHECK(drm_thread_->IsRunning()); 126 DCHECK(drm_thread_->IsRunning());
127 DCHECK(on_window_server_thread_.CalledOnValidThread()); 127 DCHECK(on_window_server_thread_.CalledOnValidThread());
128 drm_thread_->task_runner()->PostTask( 128 drm_thread_->task_runner()->PostTask(
129 FROM_HERE, 129 FROM_HERE,
130 base::Bind(&DrmThread::SetCursor, base::Unretained(drm_thread_), widget, 130 base::Bind(&DrmThread::SetCursor, base::Unretained(drm_thread_), widget,
131 bitmaps, location, frame_delay_ms)); 131 bitmaps, location, frame_delay_ms));
132 } 132 }
133 133
134 void MusThreadProxy::Move(gfx::AcceleratedWidget widget, 134 void MusThreadProxy::Move(gfx::AcceleratedWidget widget,
135 const gfx::Point& location) { 135 const gfx::Point& location) {
136 // NOTE: Input events skip the main thread to avoid jank.
136 DCHECK(drm_thread_->IsRunning()); 137 DCHECK(drm_thread_->IsRunning());
137 DCHECK(on_window_server_thread_.CalledOnValidThread());
138 drm_thread_->task_runner()->PostTask( 138 drm_thread_->task_runner()->PostTask(
139 FROM_HERE, base::Bind(&DrmThread::MoveCursor, 139 FROM_HERE, base::Bind(&DrmThread::MoveCursor,
140 base::Unretained(drm_thread_), widget, location)); 140 base::Unretained(drm_thread_), widget, location));
141 } 141 }
142 142
143 // Services needed for DrmOverlayManager. 143 // Services needed for DrmOverlayManager.
144 void MusThreadProxy::RegisterHandlerForDrmOverlayManager( 144 void MusThreadProxy::RegisterHandlerForDrmOverlayManager(
145 DrmOverlayManager* handler) { 145 DrmOverlayManager* handler) {
146 DCHECK(on_window_server_thread_.CalledOnValidThread()); 146 DCHECK(on_window_server_thread_.CalledOnValidThread());
147 overlay_manager_ = handler; 147 overlay_manager_ = handler;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698