Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: gpu/command_buffer/service/context_group.h

Issue 1905743002: Improve BindBufferBase/BindBufferRange in GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698