| 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 29 matching lines...) Expand all Loading... |
| 40 class PathManager; | 40 class PathManager; |
| 41 class ProgramManager; | 41 class ProgramManager; |
| 42 class ProgressReporter; | 42 class ProgressReporter; |
| 43 class SamplerManager; | 43 class SamplerManager; |
| 44 class ShaderManager; | 44 class ShaderManager; |
| 45 class TextureManager; | 45 class TextureManager; |
| 46 class MemoryTracker; | 46 class MemoryTracker; |
| 47 struct DisallowedFeatures; | 47 struct DisallowedFeatures; |
| 48 struct PassthroughResources; | 48 struct PassthroughResources; |
| 49 | 49 |
| 50 DisallowedFeatures AdjustDisallowedFeatures( |
| 51 ContextType context_type, |
| 52 const DisallowedFeatures& disallowed_features); |
| 53 |
| 50 // A Context Group helps manage multiple GLES2Decoders that share | 54 // A Context Group helps manage multiple GLES2Decoders that share |
| 51 // resources. | 55 // resources. |
| 52 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { | 56 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
| 53 public: | 57 public: |
| 54 ContextGroup( | 58 ContextGroup( |
| 55 const GpuPreferences& gpu_preferences, | 59 const GpuPreferences& gpu_preferences, |
| 56 const scoped_refptr<MailboxManager>& mailbox_manager, | 60 const scoped_refptr<MailboxManager>& mailbox_manager, |
| 57 const scoped_refptr<MemoryTracker>& memory_tracker, | 61 const scoped_refptr<MemoryTracker>& memory_tracker, |
| 58 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, | 62 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, |
| 59 const scoped_refptr<FramebufferCompletenessCache>& | 63 const scoped_refptr<FramebufferCompletenessCache>& |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // using in-process command buffer. | 306 // using in-process command buffer. |
| 303 ProgressReporter* progress_reporter_; | 307 ProgressReporter* progress_reporter_; |
| 304 | 308 |
| 305 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 309 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
| 306 }; | 310 }; |
| 307 | 311 |
| 308 } // namespace gles2 | 312 } // namespace gles2 |
| 309 } // namespace gpu | 313 } // namespace gpu |
| 310 | 314 |
| 311 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 315 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| OLD | NEW |