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

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

Issue 921023002: Add glGetActiveUniformsiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Created 5 years, 10 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
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_PROGRAM_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ProgramManager* manager, CommonDecoder::Bucket* bucket) const; 149 ProgramManager* manager, CommonDecoder::Bucket* bucket) const;
150 150
151 // Gets all the UniformBlock info. 151 // Gets all the UniformBlock info.
152 // Return false on overflow. 152 // Return false on overflow.
153 bool GetUniformBlocks(CommonDecoder::Bucket* bucket) const; 153 bool GetUniformBlocks(CommonDecoder::Bucket* bucket) const;
154 154
155 // Gets all the TransformFeedbackVarying info. 155 // Gets all the TransformFeedbackVarying info.
156 // Return false on overflow. 156 // Return false on overflow.
157 bool GetTransformFeedbackVaryings(CommonDecoder::Bucket* bucket) const; 157 bool GetTransformFeedbackVaryings(CommonDecoder::Bucket* bucket) const;
158 158
159 // Gather all info through glGetActiveUniformsiv, except for size, type,
160 // name_length, which we gather through glGetActiveUniform in
161 // glGetProgramInfoCHROMIUM.
162 bool GetUniformsES3(CommonDecoder::Bucket* bucket) const;
163
159 // Sets the sampler values for a uniform. 164 // Sets the sampler values for a uniform.
160 // This is safe to call for any location. If the location is not 165 // This is safe to call for any location. If the location is not
161 // a sampler uniform nothing will happen. 166 // a sampler uniform nothing will happen.
162 // Returns false if fake_location is a sampler and any value 167 // Returns false if fake_location is a sampler and any value
163 // is >= num_texture_units. Returns true otherwise. 168 // is >= num_texture_units. Returns true otherwise.
164 bool SetSamplers( 169 bool SetSamplers(
165 GLint num_texture_units, GLint fake_location, 170 GLint num_texture_units, GLint fake_location,
166 GLsizei count, const GLint* value); 171 GLsizei count, const GLint* value);
167 172
168 bool IsDeleted() const { 173 bool IsDeleted() const {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 451
447 uint32 max_varying_vectors_; 452 uint32 max_varying_vectors_;
448 453
449 DISALLOW_COPY_AND_ASSIGN(ProgramManager); 454 DISALLOW_COPY_AND_ASSIGN(ProgramManager);
450 }; 455 };
451 456
452 } // namespace gles2 457 } // namespace gles2
453 } // namespace gpu 458 } // namespace gpu
454 459
455 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ 460 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698