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_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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 GLint GetUniformFakeLocation(const std::string& name) const; | 142 GLint GetUniformFakeLocation(const std::string& name) const; |
143 | 143 |
144 // Gets the UniformInfo of a uniform by location. | 144 // Gets the UniformInfo of a uniform by location. |
145 const UniformInfo* GetUniformInfoByFakeLocation( | 145 const UniformInfo* GetUniformInfoByFakeLocation( |
146 GLint fake_location, GLint* real_location, GLint* array_index) const; | 146 GLint fake_location, GLint* real_location, GLint* array_index) const; |
147 | 147 |
148 // Gets all the program info. | 148 // Gets all the program info. |
149 void GetProgramInfo( | 149 void GetProgramInfo( |
150 ProgramManager* manager, CommonDecoder::Bucket* bucket) const; | 150 ProgramManager* manager, CommonDecoder::Bucket* bucket) const; |
151 | 151 |
| 152 // Gets all the UniformBlock info. |
| 153 // Return false on overflow. |
| 154 bool GetUniformBlocks(CommonDecoder::Bucket* bucket) const; |
| 155 |
152 // Sets the sampler values for a uniform. | 156 // Sets the sampler values for a uniform. |
153 // This is safe to call for any location. If the location is not | 157 // This is safe to call for any location. If the location is not |
154 // a sampler uniform nothing will happen. | 158 // a sampler uniform nothing will happen. |
155 // Returns false if fake_location is a sampler and any value | 159 // Returns false if fake_location is a sampler and any value |
156 // is >= num_texture_units. Returns true otherwise. | 160 // is >= num_texture_units. Returns true otherwise. |
157 bool SetSamplers( | 161 bool SetSamplers( |
158 GLint num_texture_units, GLint fake_location, | 162 GLint num_texture_units, GLint fake_location, |
159 GLsizei count, const GLint* value); | 163 GLsizei count, const GLint* value); |
160 | 164 |
161 bool IsDeleted() const { | 165 bool IsDeleted() const { |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 443 |
440 uint32 max_varying_vectors_; | 444 uint32 max_varying_vectors_; |
441 | 445 |
442 DISALLOW_COPY_AND_ASSIGN(ProgramManager); | 446 DISALLOW_COPY_AND_ASSIGN(ProgramManager); |
443 }; | 447 }; |
444 | 448 |
445 } // namespace gles2 | 449 } // namespace gles2 |
446 } // namespace gpu | 450 } // namespace gpu |
447 | 451 |
448 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 452 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
OLD | NEW |