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

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: remove some TODO(zmo)s 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
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/mocks.h ('k') | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698