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

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: corrected small code oversight Created 4 years, 4 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/gpu/drm_thread_proxy.h ('k') | ui/ozone/platform/drm/host/drm_cursor.h » ('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 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void DrmThreadProxy::GetScanoutFormats( 57 void DrmThreadProxy::GetScanoutFormats(
58 gfx::AcceleratedWidget widget, 58 gfx::AcceleratedWidget widget,
59 std::vector<gfx::BufferFormat>* scanout_formats) { 59 std::vector<gfx::BufferFormat>* scanout_formats) {
60 PostSyncTask( 60 PostSyncTask(
61 drm_thread_.task_runner(), 61 drm_thread_.task_runner(),
62 base::Bind(&DrmThread::GetScanoutFormats, base::Unretained(&drm_thread_), 62 base::Bind(&DrmThread::GetScanoutFormats, base::Unretained(&drm_thread_),
63 widget, scanout_formats)); 63 widget, scanout_formats));
64 } 64 }
65 65
66 void DrmThreadProxy::AddBinding(ozone::mojom::DeviceCursorRequest request) {
67 drm_thread_.task_runner()->PostTask(
68 FROM_HERE,
69 base::Bind(&DrmThread::AddBinding, base::Unretained(&drm_thread_),
70 base::Passed(&request)));
71 }
72
66 } // namespace ui 73 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread_proxy.h ('k') | ui/ozone/platform/drm/host/drm_cursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698