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

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

Issue 2852923004: Remove NameMap from shader translator and shader/program managers (Closed)
Patch Set: fix Created 3 years, 7 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 is not found, return NULL. 238 // If the hashed name is not found, return NULL.
239 const std::string* GetOriginalNameFromHashedName( 239 const std::string* GetOriginalNameFromHashedName(
240 const std::string& hashed_name) const; 240 const std::string& hashed_name) const;
241 241
242 // If the hashed name is not found, return NULL.
243 const sh::InterfaceBlock* GetInterfaceBlockInfo(
244 const std::string& hashed_name) const;
245
242 const FragmentInputInfo* GetFragmentInputInfoByFakeLocation( 246 const FragmentInputInfo* GetFragmentInputInfoByFakeLocation(
243 GLint fake_location) const; 247 GLint fake_location) const;
244 248
245 bool IsInactiveFragmentInputLocationByFakeLocation(GLint fake_location) const; 249 bool IsInactiveFragmentInputLocationByFakeLocation(GLint fake_location) const;
246 250
247 // Gets the fake location of a uniform by name. 251 // Gets the fake location of a uniform by name.
248 GLint GetUniformFakeLocation(const std::string& name) const; 252 GLint GetUniformFakeLocation(const std::string& name) const;
249 253
250 // Gets the UniformInfo of a uniform by location. 254 // Gets the UniformInfo of a uniform by location.
251 const UniformInfo* GetUniformInfoByFakeLocation( 255 const UniformInfo* GetUniformInfoByFakeLocation(
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 }; 733 };
730 734
731 inline const FeatureInfo& Program::feature_info() const { 735 inline const FeatureInfo& Program::feature_info() const {
732 return *manager_->feature_info_.get(); 736 return *manager_->feature_info_.get();
733 } 737 }
734 738
735 } // namespace gles2 739 } // namespace gles2
736 } // namespace gpu 740 } // namespace gpu
737 741
738 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ 742 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.cc » ('j') | gpu/command_buffer/service/program_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698