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

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

Issue 1311043016: Switch DRM platform to using a separate thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mv-drm-calls-on-thread2
Patch Set: added drm_thread_proxy Created 5 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
11
12 namespace ui {
13
14 class DrmDeviceManager;
15 class DrmWindowProxy;
16 class MessageFilterProxy;
17
18 // Mediates the communication between GPU main/IO threads and the DRM thread. It
19 // serves proxy objects that are safe to call on the GPU threads. The proxy
20 // objects then deal with safely posting the messages to the DRM thread.
21 class DrmThreadProxy {
22 public:
23 explicit DrmThreadProxy();
24 ~DrmThreadProxy();
25
26 DrmDeviceManager* device_manager() const {
27 return drm_thread_.device_manager();
28 }
29
30 scoped_refptr<MessageFilterProxy> CreateMessageFilterProxy();
spang 2015/09/30 18:17:35 Do we need to refcount?
dnicoara 2015/10/01 14:36:15 Unfortunately yes, because the base class, IPC::Me
31
32 scoped_ptr<DrmWindowProxy> CreateDrmWindowProxy(
33 gfx::AcceleratedWidget widget);
34
35 private:
36 DrmThread drm_thread_;
37
38 DISALLOW_COPY_AND_ASSIGN(DrmThreadProxy);
39 };
40
41 } // namespace ui
42
43 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698