| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 class PathManager; | 41 class PathManager; |
| 42 class ProgramManager; | 42 class ProgramManager; |
| 43 class ProgressReporter; | 43 class ProgressReporter; |
| 44 class SamplerManager; | 44 class SamplerManager; |
| 45 class ShaderManager; | 45 class ShaderManager; |
| 46 class TextureManager; | 46 class TextureManager; |
| 47 class MemoryTracker; | 47 class MemoryTracker; |
| 48 struct DisallowedFeatures; | 48 struct DisallowedFeatures; |
| 49 struct PassthroughResources; | 49 struct PassthroughResources; |
| 50 | 50 |
| 51 DisallowedFeatures AdjustDisallowedFeatures( |
| 52 ContextType context_type, |
| 53 const DisallowedFeatures& disallowed_features); |
| 54 |
| 51 // A Context Group helps manage multiple GLES2Decoders that share | 55 // A Context Group helps manage multiple GLES2Decoders that share |
| 52 // resources. | 56 // resources. |
| 53 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { | 57 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
| 54 public: | 58 public: |
| 55 ContextGroup( | 59 ContextGroup( |
| 56 const GpuPreferences& gpu_preferences, | 60 const GpuPreferences& gpu_preferences, |
| 57 const scoped_refptr<MailboxManager>& mailbox_manager, | 61 const scoped_refptr<MailboxManager>& mailbox_manager, |
| 58 const scoped_refptr<MemoryTracker>& memory_tracker, | 62 const scoped_refptr<MemoryTracker>& memory_tracker, |
| 59 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, | 63 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, |
| 60 const scoped_refptr<FramebufferCompletenessCache>& | 64 const scoped_refptr<FramebufferCompletenessCache>& |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 312 |
| 309 GpuFeatureInfo gpu_feature_info_; | 313 GpuFeatureInfo gpu_feature_info_; |
| 310 | 314 |
| 311 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 315 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
| 312 }; | 316 }; |
| 313 | 317 |
| 314 } // namespace gles2 | 318 } // namespace gles2 |
| 315 } // namespace gpu | 319 } // namespace gpu |
| 316 | 320 |
| 317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 321 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| OLD | NEW |