| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 uint32_t max_fragment_input_components() const { | 129 uint32_t max_fragment_input_components() const { |
| 130 return max_fragment_input_components_; | 130 return max_fragment_input_components_; |
| 131 } | 131 } |
| 132 | 132 |
| 133 int32_t min_program_texel_offset() const { return min_program_texel_offset_; } | 133 int32_t min_program_texel_offset() const { return min_program_texel_offset_; } |
| 134 | 134 |
| 135 int32_t max_program_texel_offset() const { return max_program_texel_offset_; } | 135 int32_t max_program_texel_offset() const { return max_program_texel_offset_; } |
| 136 | 136 |
| 137 uint32_t max_transform_feedback_separate_attribs() const { |
| 138 return max_transform_feedback_separate_attribs_; |
| 139 } |
| 140 |
| 141 uint32_t max_uniform_buffer_bindings() const { |
| 142 return max_uniform_buffer_bindings_; |
| 143 } |
| 144 |
| 145 uint32_t uniform_buffer_offset_alignment() const { |
| 146 return uniform_buffer_offset_alignment_; |
| 147 } |
| 148 |
| 137 FeatureInfo* feature_info() { | 149 FeatureInfo* feature_info() { |
| 138 return feature_info_.get(); | 150 return feature_info_.get(); |
| 139 } | 151 } |
| 140 | 152 |
| 141 const GpuPreferences& gpu_preferences() const { | 153 const GpuPreferences& gpu_preferences() const { |
| 142 return gpu_preferences_; | 154 return gpu_preferences_; |
| 143 } | 155 } |
| 144 | 156 |
| 145 BufferManager* buffer_manager() const { | 157 BufferManager* buffer_manager() const { |
| 146 return buffer_manager_.get(); | 158 return buffer_manager_.get(); |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 uint32_t max_vertex_uniform_vectors_; | 285 uint32_t max_vertex_uniform_vectors_; |
| 274 uint32_t max_color_attachments_; | 286 uint32_t max_color_attachments_; |
| 275 uint32_t max_draw_buffers_; | 287 uint32_t max_draw_buffers_; |
| 276 uint32_t max_dual_source_draw_buffers_; | 288 uint32_t max_dual_source_draw_buffers_; |
| 277 | 289 |
| 278 uint32_t max_vertex_output_components_; | 290 uint32_t max_vertex_output_components_; |
| 279 uint32_t max_fragment_input_components_; | 291 uint32_t max_fragment_input_components_; |
| 280 int32_t min_program_texel_offset_; | 292 int32_t min_program_texel_offset_; |
| 281 int32_t max_program_texel_offset_; | 293 int32_t max_program_texel_offset_; |
| 282 | 294 |
| 295 uint32_t max_transform_feedback_separate_attribs_; |
| 296 uint32_t max_uniform_buffer_bindings_; |
| 297 uint32_t uniform_buffer_offset_alignment_; |
| 298 |
| 283 ProgramCache* program_cache_; | 299 ProgramCache* program_cache_; |
| 284 | 300 |
| 285 std::unique_ptr<BufferManager> buffer_manager_; | 301 std::unique_ptr<BufferManager> buffer_manager_; |
| 286 | 302 |
| 287 std::unique_ptr<FramebufferManager> framebuffer_manager_; | 303 std::unique_ptr<FramebufferManager> framebuffer_manager_; |
| 288 | 304 |
| 289 std::unique_ptr<RenderbufferManager> renderbuffer_manager_; | 305 std::unique_ptr<RenderbufferManager> renderbuffer_manager_; |
| 290 | 306 |
| 291 std::unique_ptr<TextureManager> texture_manager_; | 307 std::unique_ptr<TextureManager> texture_manager_; |
| 292 | 308 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 308 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; | 324 base::hash_map<GLuint, GLuint> transformfeedbacks_id_map_; |
| 309 base::hash_map<GLuint, GLsync> syncs_id_map_; | 325 base::hash_map<GLuint, GLsync> syncs_id_map_; |
| 310 | 326 |
| 311 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 327 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
| 312 }; | 328 }; |
| 313 | 329 |
| 314 } // namespace gles2 | 330 } // namespace gles2 |
| 315 } // namespace gpu | 331 } // namespace gpu |
| 316 | 332 |
| 317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 333 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
| OLD | NEW |