| Index: gpu/command_buffer/service/program_manager.h
|
| diff --git a/gpu/command_buffer/service/program_manager.h b/gpu/command_buffer/service/program_manager.h
|
| index 734e50fc03b5f8cdad588617af8b141725d7d5f4..c7fe059e910a581f117900d2a7580f68f243e737 100644
|
| --- a/gpu/command_buffer/service/program_manager.h
|
| +++ b/gpu/command_buffer/service/program_manager.h
|
| @@ -200,6 +200,19 @@ class GPU_EXPORT Program : public base::RefCounted<Program> {
|
| return NULL;
|
| }
|
|
|
| + GLuint GetAttribDivisorByLocation(GLuint location) const {
|
| + if (location < attrib_location_to_divisor_map_.size()) {
|
| + return attrib_location_to_divisor_map_[location];
|
| + }
|
| + return 0;
|
| + }
|
| +
|
| + void SaveAttribDivisor(GLuint location, GLuint divisor) {
|
| + if (location < attrib_location_to_divisor_map_.size()) {
|
| + attrib_location_to_divisor_map_[location] = divisor;
|
| + }
|
| + }
|
| +
|
| const UniformInfo* GetUniformInfo(GLint index) const;
|
|
|
| // If the original name is not found, return NULL.
|
| @@ -475,6 +488,9 @@ class GPU_EXPORT Program : public base::RefCounted<Program> {
|
| // Attrib by location to index.
|
| std::vector<GLint> attrib_location_to_index_map_;
|
|
|
| + // Attrib by location to divisor value.
|
| + std::vector<GLuint> attrib_location_to_divisor_map_;
|
| +
|
| GLsizei max_uniform_name_length_;
|
|
|
| // Uniform info by index.
|
|
|