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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_utils.h

Issue 10568003: Add support for GL_CHROMIUM_consistent_uniform_locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 // This file is here so other GLES2 related files can have a common set of 5 // This file is here so other GLES2 related files can have a common set of
6 // includes where appropriate. 6 // includes where appropriate.
7 7
8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 8 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 9 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 static uint32 GetChannelsNeededForAttachmentType(int type); 139 static uint32 GetChannelsNeededForAttachmentType(int type);
140 140
141 static bool IsNPOT(uint32 value) { 141 static bool IsNPOT(uint32 value) {
142 return value > 0 && (value & (value - 1)) != 0; 142 return value > 0 && (value & (value - 1)) != 0;
143 } 143 }
144 144
145 static std::string GetStringEnum(uint32 value); 145 static std::string GetStringEnum(uint32 value);
146 static std::string GetStringBool(uint32 value); 146 static std::string GetStringBool(uint32 value);
147 static std::string GetStringError(uint32 value); 147 static std::string GetStringError(uint32 value);
148 148
149 static int32 SwizzleLocation(int32 unswizzled_location);
150 static int32 UnswizzleLocation(int32 swizzled_location);
151 static int32 MakeFakeLocation(int32 index, int32 element);
152
149 #include "../common/gles2_cmd_utils_autogen.h" 153 #include "../common/gles2_cmd_utils_autogen.h"
150 154
151 private: 155 private:
152 static std::string GetQualifiedEnumString( 156 static std::string GetQualifiedEnumString(
153 const EnumToString* table, size_t count, uint32 value); 157 const EnumToString* table, size_t count, uint32 value);
154 158
155 static const EnumToString* enum_to_string_table_; 159 static const EnumToString* enum_to_string_table_;
156 static const size_t enum_to_string_table_len_; 160 static const size_t enum_to_string_table_len_;
157 161
158 int num_compressed_texture_formats_; 162 int num_compressed_texture_formats_;
(...skipping 17 matching lines...) Expand all
176 bool buffer_preserved_; 180 bool buffer_preserved_;
177 bool share_resources_; 181 bool share_resources_;
178 bool bind_generates_resource_; 182 bool bind_generates_resource_;
179 }; 183 };
180 184
181 } // namespace gles2 185 } // namespace gles2
182 } // namespace gpu 186 } // namespace gpu
183 187
184 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 188 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
185 189
OLDNEW
« no previous file with comments | « gpu/command_buffer/cmd_buffer_functions.txt ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698