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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread_proxy.cc

Issue 2156093004: Use mojo for cursor control in ozone drm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/gpu/drm_thread_proxy.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h" 9 #include "ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h"
10 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h" 10 #include "ui/ozone/platform/drm/gpu/drm_window_proxy.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void DrmThreadProxy::GetScanoutFormats( 56 void DrmThreadProxy::GetScanoutFormats(
57 gfx::AcceleratedWidget widget, 57 gfx::AcceleratedWidget widget,
58 std::vector<gfx::BufferFormat>* scanout_formats) { 58 std::vector<gfx::BufferFormat>* scanout_formats) {
59 PostSyncTask( 59 PostSyncTask(
60 drm_thread_.task_runner(), 60 drm_thread_.task_runner(),
61 base::Bind(&DrmThread::GetScanoutFormats, base::Unretained(&drm_thread_), 61 base::Bind(&DrmThread::GetScanoutFormats, base::Unretained(&drm_thread_),
62 widget, scanout_formats)); 62 widget, scanout_formats));
63 } 63 }
64 64
65 void DrmThreadProxy::AddBinding(shell::Connection* connection,
66 ozone::mojom::DeviceCursorRequest request) {
67 drm_thread_.task_runner()->PostTask(
68 FROM_HERE,
69 base::Bind(&DrmThread::AddBinding, base::Unretained(&drm_thread_),
70 connection, base::Passed(&request)));
71 }
72
65 } // namespace ui 73 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698