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 <vector> | 8 #include <vector> |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 private: | 244 private: |
245 friend class base::RefCounted<ContextGroup>; | 245 friend class base::RefCounted<ContextGroup>; |
246 ~ContextGroup(); | 246 ~ContextGroup(); |
247 | 247 |
248 bool CheckGLFeature(GLint min_required, GLint* v); | 248 bool CheckGLFeature(GLint min_required, GLint* v); |
249 bool CheckGLFeatureU(GLint min_required, uint32* v); | 249 bool CheckGLFeatureU(GLint min_required, uint32* v); |
250 bool QueryGLFeature(GLenum pname, GLint min_required, GLint* v); | 250 bool QueryGLFeature(GLenum pname, GLint min_required, GLint* v); |
251 bool QueryGLFeatureU(GLenum pname, GLint min_required, uint32* v); | 251 bool QueryGLFeatureU(GLenum pname, GLint min_required, uint32* v); |
252 bool HaveContexts(); | 252 bool HaveContexts(); |
253 | 253 |
254 ContextType context_type_; | |
255 | |
256 scoped_refptr<MailboxManager> mailbox_manager_; | 254 scoped_refptr<MailboxManager> mailbox_manager_; |
257 scoped_refptr<MemoryTracker> memory_tracker_; | 255 scoped_refptr<MemoryTracker> memory_tracker_; |
258 scoped_refptr<ShaderTranslatorCache> shader_translator_cache_; | 256 scoped_refptr<ShaderTranslatorCache> shader_translator_cache_; |
259 scoped_refptr<FramebufferCompletenessCache> framebuffer_completeness_cache_; | 257 scoped_refptr<FramebufferCompletenessCache> framebuffer_completeness_cache_; |
260 scoped_refptr<TransferBufferManager> transfer_buffer_manager_; | 258 scoped_refptr<TransferBufferManager> transfer_buffer_manager_; |
261 scoped_refptr<SubscriptionRefSet> subscription_ref_set_; | 259 scoped_refptr<SubscriptionRefSet> subscription_ref_set_; |
262 scoped_refptr<ValueStateMap> pending_valuebuffer_state_; | 260 scoped_refptr<ValueStateMap> pending_valuebuffer_state_; |
263 | 261 |
264 bool enforce_gl_minimums_; | 262 bool enforce_gl_minimums_; |
265 bool bind_generates_resource_; | 263 bool bind_generates_resource_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; | 299 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; |
302 base::hash_map<GLuint, GLsync> syncs_id_map_; | 300 base::hash_map<GLuint, GLsync> syncs_id_map_; |
303 | 301 |
304 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 302 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
305 }; | 303 }; |
306 | 304 |
307 } // namespace gles2 | 305 } // namespace gles2 |
308 } // namespace gpu | 306 } // namespace gpu |
309 | 307 |
310 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 308 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
311 | |
312 | |
OLD | NEW |