OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "ipc/message_filter.h" | 11 #include "ipc/message_filter.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 #include "ui/ozone/public/gpu_platform_support.h" | 13 #include "ui/ozone/public/gpu_platform_support.h" |
14 | 14 |
15 class SkBitmap; | 15 class SkBitmap; |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class FilePath; | 18 class FilePath; |
19 } | 19 } |
20 | 20 |
21 namespace gfx { | 21 namespace gfx { |
22 class Point; | 22 class Point; |
23 class Rect; | 23 class Rect; |
24 } | 24 } |
25 | 25 |
26 namespace ui { | 26 namespace ui { |
27 | 27 |
| 28 class DriHelperThread; |
28 class DriSurfaceFactory; | 29 class DriSurfaceFactory; |
29 class DriWindowDelegate; | 30 class DriWindowDelegate; |
30 class DriWindowDelegateManager; | 31 class DriWindowDelegateManager; |
31 class DriWrapper; | 32 class DriWrapper; |
32 class NativeDisplayDelegateDri; | 33 class NativeDisplayDelegateDri; |
33 class ScreenManager; | 34 class ScreenManager; |
34 | 35 |
35 struct DisplayMode_Params; | 36 struct DisplayMode_Params; |
36 struct DisplaySnapshot_Params; | 37 struct DisplaySnapshot_Params; |
37 | 38 |
38 class DriGpuPlatformSupport : public GpuPlatformSupport { | 39 class DriGpuPlatformSupport : public GpuPlatformSupport { |
39 public: | 40 public: |
40 DriGpuPlatformSupport(DriWrapper* drm, | 41 DriGpuPlatformSupport(DriWrapper* drm, |
41 DriWindowDelegateManager* window_manager, | 42 DriWindowDelegateManager* window_manager, |
42 ScreenManager* screen_manager, | 43 ScreenManager* screen_manager, |
| 44 DriHelperThread* helper_thread, |
43 scoped_ptr<NativeDisplayDelegateDri> ndd); | 45 scoped_ptr<NativeDisplayDelegateDri> ndd); |
44 ~DriGpuPlatformSupport() override; | 46 ~DriGpuPlatformSupport() override; |
45 | 47 |
46 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); | 48 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); |
47 | 49 |
48 // GpuPlatformSupport: | 50 // GpuPlatformSupport: |
49 void OnChannelEstablished(IPC::Sender* sender) override; | 51 void OnChannelEstablished(IPC::Sender* sender) override; |
50 void RelinquishGpuResources(const base::Closure& callback) override; | 52 void RelinquishGpuResources(const base::Closure& callback) override; |
51 IPC::MessageFilter* GetMessageFilter() override; | 53 IPC::MessageFilter* GetMessageFilter() override; |
52 | 54 |
(...skipping 29 matching lines...) Expand all Loading... |
82 ScreenManager* screen_manager_; // Not owned. | 84 ScreenManager* screen_manager_; // Not owned. |
83 | 85 |
84 scoped_ptr<NativeDisplayDelegateDri> ndd_; | 86 scoped_ptr<NativeDisplayDelegateDri> ndd_; |
85 ScopedVector<GpuPlatformSupport> handlers_; | 87 ScopedVector<GpuPlatformSupport> handlers_; |
86 scoped_refptr<IPC::MessageFilter> filter_; | 88 scoped_refptr<IPC::MessageFilter> filter_; |
87 }; | 89 }; |
88 | 90 |
89 } // namespace ui | 91 } // namespace ui |
90 | 92 |
91 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 93 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
OLD | NEW |