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_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 namespace gles2 { | 27 namespace gles2 { |
28 | 28 |
29 class ProgramCache; | 29 class ProgramCache; |
30 class BufferManager; | 30 class BufferManager; |
31 class GLES2Decoder; | 31 class GLES2Decoder; |
32 class FramebufferManager; | 32 class FramebufferManager; |
33 class ImageManager; | 33 class ImageManager; |
34 class MailboxManager; | 34 class MailboxManager; |
35 class RenderbufferManager; | 35 class RenderbufferManager; |
| 36 class PathManager; |
36 class ProgramManager; | 37 class ProgramManager; |
37 class ShaderManager; | 38 class ShaderManager; |
38 class TextureManager; | 39 class TextureManager; |
39 class MemoryTracker; | 40 class MemoryTracker; |
40 struct DisallowedFeatures; | 41 struct DisallowedFeatures; |
41 | 42 |
42 // A Context Group helps manage multiple GLES2Decoders that share | 43 // A Context Group helps manage multiple GLES2Decoders that share |
43 // resources. | 44 // resources. |
44 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { | 45 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
45 public: | 46 public: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 131 } |
131 | 132 |
132 RenderbufferManager* renderbuffer_manager() const { | 133 RenderbufferManager* renderbuffer_manager() const { |
133 return renderbuffer_manager_.get(); | 134 return renderbuffer_manager_.get(); |
134 } | 135 } |
135 | 136 |
136 TextureManager* texture_manager() const { | 137 TextureManager* texture_manager() const { |
137 return texture_manager_.get(); | 138 return texture_manager_.get(); |
138 } | 139 } |
139 | 140 |
| 141 PathManager* path_manager() const { return path_manager_.get(); } |
| 142 |
140 ProgramManager* program_manager() const { | 143 ProgramManager* program_manager() const { |
141 return program_manager_.get(); | 144 return program_manager_.get(); |
142 } | 145 } |
143 | 146 |
144 bool has_program_cache() const { | 147 bool has_program_cache() const { |
145 return program_cache_ != NULL; | 148 return program_cache_ != NULL; |
146 } | 149 } |
147 | 150 |
148 void set_program_cache(ProgramCache* program_cache) { | 151 void set_program_cache(ProgramCache* program_cache) { |
149 program_cache_ = program_cache; | 152 program_cache_ = program_cache; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 ProgramCache* program_cache_; | 207 ProgramCache* program_cache_; |
205 | 208 |
206 scoped_ptr<BufferManager> buffer_manager_; | 209 scoped_ptr<BufferManager> buffer_manager_; |
207 | 210 |
208 scoped_ptr<FramebufferManager> framebuffer_manager_; | 211 scoped_ptr<FramebufferManager> framebuffer_manager_; |
209 | 212 |
210 scoped_ptr<RenderbufferManager> renderbuffer_manager_; | 213 scoped_ptr<RenderbufferManager> renderbuffer_manager_; |
211 | 214 |
212 scoped_ptr<TextureManager> texture_manager_; | 215 scoped_ptr<TextureManager> texture_manager_; |
213 | 216 |
| 217 scoped_ptr<PathManager> path_manager_; |
| 218 |
214 scoped_ptr<ProgramManager> program_manager_; | 219 scoped_ptr<ProgramManager> program_manager_; |
215 | 220 |
216 scoped_ptr<ShaderManager> shader_manager_; | 221 scoped_ptr<ShaderManager> shader_manager_; |
217 | 222 |
218 linked_ptr<IdAllocatorInterface> | 223 linked_ptr<IdAllocatorInterface> |
219 id_namespaces_[id_namespaces::kNumIdNamespaces]; | 224 id_namespaces_[id_namespaces::kNumIdNamespaces]; |
220 | 225 |
221 scoped_refptr<FeatureInfo> feature_info_; | 226 scoped_refptr<FeatureInfo> feature_info_; |
222 | 227 |
223 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; | 228 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; |
224 | 229 |
225 GLenum draw_buffer_; | 230 GLenum draw_buffer_; |
226 | 231 |
227 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 232 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
228 }; | 233 }; |
229 | 234 |
230 } // namespace gles2 | 235 } // namespace gles2 |
231 } // namespace gpu | 236 } // namespace gpu |
232 | 237 |
233 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 238 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
234 | 239 |
235 | 240 |
OLD | NEW |