| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const std::string& _name) | 81 const std::string& _name) |
| 82 : color_name(_color_name), index(_index), name(_name) {} | 82 : color_name(_color_name), index(_index), name(_name) {} |
| 83 ProgramOutputInfo() : color_name(0), index(0) {} | 83 ProgramOutputInfo() : color_name(0), index(0) {} |
| 84 GLuint color_name; | 84 GLuint color_name; |
| 85 GLuint index; | 85 GLuint index; |
| 86 std::string name; | 86 std::string name; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 struct UniformInfo { | 89 struct UniformInfo { |
| 90 UniformInfo(); | 90 UniformInfo(); |
| 91 UniformInfo(const UniformInfo& other); |
| 91 UniformInfo(const std::string& client_name, | 92 UniformInfo(const std::string& client_name, |
| 92 GLint client_location_base, | 93 GLint client_location_base, |
| 93 GLenum _type, | 94 GLenum _type, |
| 94 bool _is_array, | 95 bool _is_array, |
| 95 const std::vector<GLint>& service_locations); | 96 const std::vector<GLint>& service_locations); |
| 96 ~UniformInfo(); | 97 ~UniformInfo(); |
| 97 bool IsSampler() const { | 98 bool IsSampler() const { |
| 98 return type == GL_SAMPLER_2D || type == GL_SAMPLER_2D_RECT_ARB || | 99 return type == GL_SAMPLER_2D || type == GL_SAMPLER_2D_RECT_ARB || |
| 99 type == GL_SAMPLER_CUBE || type == GL_SAMPLER_EXTERNAL_OES; | 100 type == GL_SAMPLER_CUBE || type == GL_SAMPLER_EXTERNAL_OES; |
| 100 } | 101 } |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 }; | 617 }; |
| 617 | 618 |
| 618 inline const FeatureInfo& Program::feature_info() const { | 619 inline const FeatureInfo& Program::feature_info() const { |
| 619 return *manager_->feature_info_.get(); | 620 return *manager_->feature_info_.get(); |
| 620 } | 621 } |
| 621 | 622 |
| 622 } // namespace gles2 | 623 } // namespace gles2 |
| 623 } // namespace gpu | 624 } // namespace gpu |
| 624 | 625 |
| 625 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 626 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
| OLD | NEW |