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

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

Issue 10635011: Add glBindUniformLocationCHROMIUM (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
153 #include "../common/gles2_cmd_utils_autogen.h" 149 #include "../common/gles2_cmd_utils_autogen.h"
154 150
155 private: 151 private:
156 static std::string GetQualifiedEnumString( 152 static std::string GetQualifiedEnumString(
157 const EnumToString* table, size_t count, uint32 value); 153 const EnumToString* table, size_t count, uint32 value);
158 154
159 static const EnumToString* enum_to_string_table_; 155 static const EnumToString* enum_to_string_table_;
160 static const size_t enum_to_string_table_len_; 156 static const size_t enum_to_string_table_len_;
161 157
162 int num_compressed_texture_formats_; 158 int num_compressed_texture_formats_;
(...skipping 17 matching lines...) Expand all
180 bool buffer_preserved_; 176 bool buffer_preserved_;
181 bool share_resources_; 177 bool share_resources_;
182 bool bind_generates_resource_; 178 bool bind_generates_resource_;
183 }; 179 };
184 180
185 } // namespace gles2 181 } // namespace gles2
186 } // namespace gpu 182 } // namespace gpu
187 183
188 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_ 184 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_H_
189 185
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_ids_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698