OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ |
6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ | 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "ui/gfx/gpu_memory_buffer.h" | 27 #include "ui/gfx/gpu_memory_buffer.h" |
28 #include "ui/gfx/native_widget_types.h" | 28 #include "ui/gfx/native_widget_types.h" |
29 #include "ui/gl/gl_surface.h" | 29 #include "ui/gl/gl_surface.h" |
30 #include "url/gurl.h" | 30 #include "url/gurl.h" |
31 | 31 |
32 namespace gl { | 32 namespace gl { |
33 class GLShareGroup; | 33 class GLShareGroup; |
34 } | 34 } |
35 | 35 |
36 namespace gpu { | 36 namespace gpu { |
| 37 class GpuDriverBugWorkarounds; |
37 struct GpuPreferences; | 38 struct GpuPreferences; |
38 class PreemptionFlag; | 39 class PreemptionFlag; |
39 class SyncPointManager; | 40 class SyncPointManager; |
40 struct SyncToken; | 41 struct SyncToken; |
41 namespace gles2 { | 42 namespace gles2 { |
42 class FramebufferCompletenessCache; | 43 class FramebufferCompletenessCache; |
43 class MailboxManager; | 44 class MailboxManager; |
44 class ProgramCache; | 45 class ProgramCache; |
45 class ShaderTranslatorCache; | 46 class ShaderTranslatorCache; |
46 } | 47 } |
47 } | 48 } |
48 | 49 |
49 namespace gpu { | 50 namespace gpu { |
50 class GpuChannel; | 51 class GpuChannel; |
51 class GpuChannelManagerDelegate; | 52 class GpuChannelManagerDelegate; |
52 class GpuMemoryBufferFactory; | 53 class GpuMemoryBufferFactory; |
53 class GpuWatchdogThread; | 54 class GpuWatchdogThread; |
54 | 55 |
55 // A GpuChannelManager is a thread responsible for issuing rendering commands | 56 // A GpuChannelManager is a thread responsible for issuing rendering commands |
56 // managing the lifetimes of GPU channels and forwarding IPC requests from the | 57 // managing the lifetimes of GPU channels and forwarding IPC requests from the |
57 // browser process to them based on the corresponding renderer ID. | 58 // browser process to them based on the corresponding renderer ID. |
58 class GPU_EXPORT GpuChannelManager { | 59 class GPU_EXPORT GpuChannelManager { |
59 public: | 60 public: |
60 GpuChannelManager(const GpuPreferences& gpu_preferences, | 61 GpuChannelManager(const GpuPreferences& gpu_preferences, |
| 62 const GpuDriverBugWorkarounds& workarounds, |
61 GpuChannelManagerDelegate* delegate, | 63 GpuChannelManagerDelegate* delegate, |
62 GpuWatchdogThread* watchdog, | 64 GpuWatchdogThread* watchdog, |
63 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
64 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 66 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
65 SyncPointManager* sync_point_manager, | 67 SyncPointManager* sync_point_manager, |
66 GpuMemoryBufferFactory* gpu_memory_buffer_factory, | 68 GpuMemoryBufferFactory* gpu_memory_buffer_factory, |
67 const GpuFeatureInfo& gpu_feature_info, | 69 const GpuFeatureInfo& gpu_feature_info, |
68 GpuProcessActivityFlags activity_flags); | 70 GpuProcessActivityFlags activity_flags); |
69 ~GpuChannelManager(); | 71 ~GpuChannelManager(); |
70 | 72 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // that any WeakPtrs to Controller are invalidated before its members | 177 // that any WeakPtrs to Controller are invalidated before its members |
176 // variable's destructors are executed, rendering them invalid. | 178 // variable's destructors are executed, rendering them invalid. |
177 base::WeakPtrFactory<GpuChannelManager> weak_factory_; | 179 base::WeakPtrFactory<GpuChannelManager> weak_factory_; |
178 | 180 |
179 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 181 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
180 }; | 182 }; |
181 | 183 |
182 } // namespace gpu | 184 } // namespace gpu |
183 | 185 |
184 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ | 186 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |