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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |