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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698