| 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 <vector> | 11 #include <vector> |
| 12 |
| 11 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
| 12 #include "base/macros.h" | 14 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 16 #include "gpu/command_buffer/common/constants.h" | 17 #include "gpu/command_buffer/common/constants.h" |
| 17 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 18 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 18 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 19 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 19 #include "gpu/command_buffer/service/feature_info.h" | 20 #include "gpu/command_buffer/service/feature_info.h" |
| 20 #include "gpu/command_buffer/service/framebuffer_completeness_cache.h" | 21 #include "gpu/command_buffer/service/framebuffer_completeness_cache.h" |
| 21 #include "gpu/command_buffer/service/gpu_preferences.h" | 22 #include "gpu/command_buffer/service/gpu_preferences.h" |
| 22 #include "gpu/command_buffer/service/shader_translator_cache.h" | 23 #include "gpu/command_buffer/service/shader_translator_cache.h" |
| 23 #include "gpu/gpu_export.h" | 24 #include "gpu/gpu_export.h" |
| 24 | 25 |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 uint32_t max_draw_buffers_; | 275 uint32_t max_draw_buffers_; |
| 275 uint32_t max_dual_source_draw_buffers_; | 276 uint32_t max_dual_source_draw_buffers_; |
| 276 | 277 |
| 277 uint32_t max_vertex_output_components_; | 278 uint32_t max_vertex_output_components_; |
| 278 uint32_t max_fragment_input_components_; | 279 uint32_t max_fragment_input_components_; |
| 279 int32_t min_program_texel_offset_; | 280 int32_t min_program_texel_offset_; |
| 280 int32_t max_program_texel_offset_; | 281 int32_t max_program_texel_offset_; |
| 281 | 282 |
| 282 ProgramCache* program_cache_; | 283 ProgramCache* program_cache_; |
| 283 | 284 |
| 284 scoped_ptr<BufferManager> buffer_manager_; | 285 std::unique_ptr<BufferManager> buffer_manager_; |
| 285 | 286 |
| 286 scoped_ptr<FramebufferManager> framebuffer_manager_; | 287 std::unique_ptr<FramebufferManager> framebuffer_manager_; |
| 287 | 288 |
| 288 scoped_ptr<RenderbufferManager> renderbuffer_manager_; | 289 std::unique_ptr<RenderbufferManager> renderbuffer_manager_; |
| 289 | 290 |
| 290 scoped_ptr<TextureManager> texture_manager_; | 291 std::unique_ptr<TextureManager> texture_manager_; |
| 291 | 292 |
| 292 scoped_ptr<PathManager> path_manager_; | 293 std::unique_ptr<PathManager> path_manager_; |
| 293 | 294 |
| 294 scoped_ptr<ProgramManager> program_manager_; | 295 std::unique_ptr<ProgramManager> program_manager_; |
| 295 | 296 |
| 296 scoped_ptr<ShaderManager> shader_manager_; | 297 std::unique_ptr<ShaderManager> shader_manager_; |
| 297 | 298 |
| 298 scoped_ptr<SamplerManager> sampler_manager_; | 299 std::unique_ptr<SamplerManager> sampler_manager_; |
| 299 | 300 |
| 300 scoped_ptr<ValuebufferManager> valuebuffer_manager_; | 301 std::unique_ptr<ValuebufferManager> valuebuffer_manager_; |
| 301 | 302 |
| 302 scoped_refptr<FeatureInfo> feature_info_; | 303 scoped_refptr<FeatureInfo> feature_info_; |
| 303 | 304 |
| 304 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; | 305 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; |
| 305 | 306 |
| 306 // Mappings from client side IDs to service side IDs. | 307 // Mappings from client side IDs to service side IDs. |
| 307 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; | 308 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; |
| 308 base::hash_map<GLuint, GLsync> syncs_id_map_; | 309 base::hash_map<GLuint, GLsync> syncs_id_map_; |
| 309 | 310 |
| 310 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 311 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
| 311 }; | 312 }; |
| 312 | 313 |
| 313 } // namespace gles2 | 314 } // namespace gles2 |
| 314 } // namespace gpu | 315 } // namespace gpu |
| 315 | 316 |
| 316 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| OLD | NEW |