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/gpu/drm_thread_proxy.h

Issue 2870653002: ozone: Use the right thread for BinderRegistry. (Closed)
Patch Set: Created 3 years, 7 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 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "ui/ozone/platform/drm/gpu/drm_thread.h" 12 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
13 #include "ui/ozone/public/interfaces/device_cursor.mojom.h" 13 #include "ui/ozone/public/interfaces/device_cursor.mojom.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class DrmWindowProxy; 17 class DrmWindowProxy;
18 class InterThreadMessagingProxy; 18 class InterThreadMessagingProxy;
19 19
20 // Mediates the communication between GPU main/IO threads and the DRM thread. It 20 // Mediates the communication between GPU main/IO threads and the DRM thread. It
21 // serves proxy objects that are safe to call on the GPU threads. The proxy 21 // serves proxy objects that are safe to call on the GPU threads. The proxy
22 // objects then deal with safely posting the messages to the DRM thread. 22 // objects then deal with safely posting the messages to the DRM thread.
23 class DrmThreadProxy { 23 class DrmThreadProxy {
24 public: 24 public:
25 explicit DrmThreadProxy(); 25 DrmThreadProxy();
26 ~DrmThreadProxy(); 26 ~DrmThreadProxy();
27 27
28 void BindThreadIntoMessagingProxy(InterThreadMessagingProxy* messaging_proxy); 28 void BindThreadIntoMessagingProxy(InterThreadMessagingProxy* messaging_proxy);
29 29
30 std::unique_ptr<DrmWindowProxy> CreateDrmWindowProxy( 30 std::unique_ptr<DrmWindowProxy> CreateDrmWindowProxy(
31 gfx::AcceleratedWidget widget); 31 gfx::AcceleratedWidget widget);
32 32
33 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget, 33 scoped_refptr<GbmBuffer> CreateBuffer(gfx::AcceleratedWidget widget,
34 const gfx::Size& size, 34 const gfx::Size& size,
35 gfx::BufferFormat format, 35 gfx::BufferFormat format,
(...skipping 13 matching lines...) Expand all
49 49
50 private: 50 private:
51 DrmThread drm_thread_; 51 DrmThread drm_thread_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy); 53 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy);
54 }; 54 };
55 55
56 } // namespace ui 56 } // namespace ui
57 57
58 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_ 58 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('j') | ui/ozone/platform/drm/ozone_platform_gbm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698