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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace gles2 { | 32 namespace gles2 { |
33 class MailboxManager; | 33 class MailboxManager; |
34 class ProgramCache; | 34 class ProgramCache; |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 namespace IPC { | 38 namespace IPC { |
39 struct ChannelHandle; | 39 struct ChannelHandle; |
40 } | 40 } |
41 | 41 |
| 42 struct GPUCreateCommandBufferConfig; |
| 43 |
| 44 namespace content { |
42 class ChildThread; | 45 class ChildThread; |
43 class GpuChannel; | 46 class GpuChannel; |
44 class GpuWatchdog; | 47 class GpuWatchdog; |
45 struct GPUCreateCommandBufferConfig; | |
46 class SyncPointManager; | 48 class SyncPointManager; |
47 | 49 |
48 // A GpuChannelManager is a thread responsible for issuing rendering commands | 50 // A GpuChannelManager is a thread responsible for issuing rendering commands |
49 // managing the lifetimes of GPU channels and forwarding IPC requests from the | 51 // managing the lifetimes of GPU channels and forwarding IPC requests from the |
50 // browser process to them based on the corresponding renderer ID. | 52 // browser process to them based on the corresponding renderer ID. |
51 // | 53 // |
52 // A GpuChannelManager can also be hosted in the browser process in single | 54 // A GpuChannelManager can also be hosted in the browser process in single |
53 // process or in-process GPU modes. In this case there is no corresponding | 55 // process or in-process GPU modes. In this case there is no corresponding |
54 // GpuChildThread and this is the reason the GpuChildThread is referenced via | 56 // GpuChildThread and this is the reason the GpuChildThread is referenced via |
55 // a pointer to IPC::Sender, which can be implemented by other hosts to send | 57 // a pointer to IPC::Sender, which can be implemented by other hosts to send |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 GpuMemoryManager gpu_memory_manager_; | 144 GpuMemoryManager gpu_memory_manager_; |
143 GpuWatchdog* watchdog_; | 145 GpuWatchdog* watchdog_; |
144 scoped_refptr<SyncPointManager> sync_point_manager_; | 146 scoped_refptr<SyncPointManager> sync_point_manager_; |
145 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; | 147 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; |
146 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; | 148 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; |
147 ImageOperationQueue image_operations_; | 149 ImageOperationQueue image_operations_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); | 151 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); |
150 }; | 152 }; |
151 | 153 |
| 154 } // namespace content |
| 155 |
152 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ | 156 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ |
OLD | NEW |