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 14 matching lines...) Expand all Loading... |
25 class ValueStateMap; | 25 class ValueStateMap; |
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 MailboxManager; | 33 class MailboxManager; |
34 class RenderbufferManager; | 34 class RenderbufferManager; |
| 35 class PathManager; |
35 class ProgramManager; | 36 class ProgramManager; |
36 class ShaderManager; | 37 class ShaderManager; |
37 class TextureManager; | 38 class TextureManager; |
38 class SubscriptionRefSet; | 39 class SubscriptionRefSet; |
39 class ValuebufferManager; | 40 class ValuebufferManager; |
40 class MemoryTracker; | 41 class MemoryTracker; |
41 struct DisallowedFeatures; | 42 struct DisallowedFeatures; |
42 | 43 |
43 // A Context Group helps manage multiple GLES2Decoders that share | 44 // A Context Group helps manage multiple GLES2Decoders that share |
44 // resources. | 45 // resources. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 147 } |
147 | 148 |
148 ValueStateMap* pending_valuebuffer_state() const { | 149 ValueStateMap* pending_valuebuffer_state() const { |
149 return pending_valuebuffer_state_.get(); | 150 return pending_valuebuffer_state_.get(); |
150 } | 151 } |
151 | 152 |
152 TextureManager* texture_manager() const { | 153 TextureManager* texture_manager() const { |
153 return texture_manager_.get(); | 154 return texture_manager_.get(); |
154 } | 155 } |
155 | 156 |
| 157 PathManager* path_manager() const { return path_manager_.get(); } |
| 158 |
156 ProgramManager* program_manager() const { | 159 ProgramManager* program_manager() const { |
157 return program_manager_.get(); | 160 return program_manager_.get(); |
158 } | 161 } |
159 | 162 |
160 bool has_program_cache() const { | 163 bool has_program_cache() const { |
161 return program_cache_ != NULL; | 164 return program_cache_ != NULL; |
162 } | 165 } |
163 | 166 |
164 void set_program_cache(ProgramCache* program_cache) { | 167 void set_program_cache(ProgramCache* program_cache) { |
165 program_cache_ = program_cache; | 168 program_cache_ = program_cache; |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 ProgramCache* program_cache_; | 287 ProgramCache* program_cache_; |
285 | 288 |
286 scoped_ptr<BufferManager> buffer_manager_; | 289 scoped_ptr<BufferManager> buffer_manager_; |
287 | 290 |
288 scoped_ptr<FramebufferManager> framebuffer_manager_; | 291 scoped_ptr<FramebufferManager> framebuffer_manager_; |
289 | 292 |
290 scoped_ptr<RenderbufferManager> renderbuffer_manager_; | 293 scoped_ptr<RenderbufferManager> renderbuffer_manager_; |
291 | 294 |
292 scoped_ptr<TextureManager> texture_manager_; | 295 scoped_ptr<TextureManager> texture_manager_; |
293 | 296 |
| 297 scoped_ptr<PathManager> path_manager_; |
| 298 |
294 scoped_ptr<ProgramManager> program_manager_; | 299 scoped_ptr<ProgramManager> program_manager_; |
295 | 300 |
296 scoped_ptr<ShaderManager> shader_manager_; | 301 scoped_ptr<ShaderManager> shader_manager_; |
297 | 302 |
298 scoped_ptr<ValuebufferManager> valuebuffer_manager_; | 303 scoped_ptr<ValuebufferManager> valuebuffer_manager_; |
299 | 304 |
300 scoped_refptr<FeatureInfo> feature_info_; | 305 scoped_refptr<FeatureInfo> feature_info_; |
301 | 306 |
302 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; | 307 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; |
303 | 308 |
304 // Mappings from client side IDs to service side IDs. | 309 // Mappings from client side IDs to service side IDs. |
305 base::hash_map<GLuint, GLuint> samplers_id_map_; | 310 base::hash_map<GLuint, GLuint> samplers_id_map_; |
306 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; | 311 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; |
307 base::hash_map<GLuint, GLsync> syncs_id_map_; | 312 base::hash_map<GLuint, GLsync> syncs_id_map_; |
308 | 313 |
309 GLenum draw_buffer_; | 314 GLenum draw_buffer_; |
310 | 315 |
311 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 316 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
312 }; | 317 }; |
313 | 318 |
314 } // namespace gles2 | 319 } // namespace gles2 |
315 } // namespace gpu | 320 } // namespace gpu |
316 | 321 |
317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 322 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
318 | 323 |
319 | 324 |
OLD | NEW |