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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 const UniformInfo* GetUniformInfo(GLint index) const; | 228 const UniformInfo* GetUniformInfo(GLint index) const; |
229 | 229 |
230 // If the original name is not found, return NULL. | 230 // If the original name is not found, return NULL. |
231 const std::string* GetAttribMappedName( | 231 const std::string* GetAttribMappedName( |
232 const std::string& original_name) const; | 232 const std::string& original_name) const; |
233 | 233 |
234 // If the original name is not found, return NULL. | 234 // If the original name is not found, return NULL. |
235 const std::string* GetUniformMappedName( | 235 const std::string* GetUniformMappedName( |
236 const std::string& original_name) const; | 236 const std::string& original_name) const; |
237 | 237 |
| 238 // If the hashed name name is not found, return NULL. |
| 239 // Use this only when one of the more specific Get*Info methods can't be used. |
| 240 const std::string* GetOriginalNameFromHashedName( |
| 241 const std::string& hashed_name) const; |
| 242 |
238 // If the hashed name is not found, return NULL. | 243 // If the hashed name is not found, return NULL. |
239 const std::string* GetOriginalNameFromHashedName( | 244 const sh::Varying* GetVaryingInfo(const std::string& hashed_name) const; |
| 245 |
| 246 // If the hashed name is not found, return NULL. |
| 247 const sh::InterfaceBlock* GetInterfaceBlockInfo( |
240 const std::string& hashed_name) const; | 248 const std::string& hashed_name) const; |
241 | 249 |
242 const FragmentInputInfo* GetFragmentInputInfoByFakeLocation( | 250 const FragmentInputInfo* GetFragmentInputInfoByFakeLocation( |
243 GLint fake_location) const; | 251 GLint fake_location) const; |
244 | 252 |
245 bool IsInactiveFragmentInputLocationByFakeLocation(GLint fake_location) const; | 253 bool IsInactiveFragmentInputLocationByFakeLocation(GLint fake_location) const; |
246 | 254 |
247 // Gets the fake location of a uniform by name. | 255 // Gets the fake location of a uniform by name. |
248 GLint GetUniformFakeLocation(const std::string& name) const; | 256 GLint GetUniformFakeLocation(const std::string& name) const; |
249 | 257 |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 }; | 737 }; |
730 | 738 |
731 inline const FeatureInfo& Program::feature_info() const { | 739 inline const FeatureInfo& Program::feature_info() const { |
732 return *manager_->feature_info_.get(); | 740 return *manager_->feature_info_.get(); |
733 } | 741 } |
734 | 742 |
735 } // namespace gles2 | 743 } // namespace gles2 |
736 } // namespace gpu | 744 } // namespace gpu |
737 | 745 |
738 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 746 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
OLD | NEW |