OLD | NEW |
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 Loading... |
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 |
OLD | NEW |