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

Unified Diff: gpu/command_buffer/service/shader_translator.h

Issue 6969100: Hook up shader long variable name mapping with GPU command buffer port. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/shader_translator.h
===================================================================
--- gpu/command_buffer/service/shader_translator.h (revision 87329)
+++ gpu/command_buffer/service/shader_translator.h (working copy)
@@ -45,12 +45,14 @@
: type(0),
size(0) {
}
- VariableInfo(int _type, int _size)
+ VariableInfo(int _type, int _size, std::string _name)
: type(_type),
- size(_size) {
+ size(_size),
+ name(_name) {
}
int type;
int size;
+ std::string name; // name in the original shader source.
};
// Mapping between variable name and info.
typedef base::hash_map<std::string, VariableInfo> VariableMap;
« no previous file with comments | « gpu/command_buffer/service/shader_manager_unittest.cc ('k') | gpu/command_buffer/service/shader_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698