| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 4161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4172 }; | 4172 }; |
| 4173 return GLES2Util::GetQualifiedEnumString(string_table, | 4173 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4174 arraysize(string_table), value); | 4174 arraysize(string_table), value); |
| 4175 } | 4175 } |
| 4176 | 4176 |
| 4177 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) { | 4177 std::string GLES2Util::GetStringReadPixelFormat(uint32_t value) { |
| 4178 static const EnumToString string_table[] = { | 4178 static const EnumToString string_table[] = { |
| 4179 {GL_ALPHA, "GL_ALPHA"}, | 4179 {GL_ALPHA, "GL_ALPHA"}, |
| 4180 {GL_RGB, "GL_RGB"}, | 4180 {GL_RGB, "GL_RGB"}, |
| 4181 {GL_RGBA, "GL_RGBA"}, | 4181 {GL_RGBA, "GL_RGBA"}, |
| 4182 {GL_RED, "GL_RED"}, |
| 4183 {GL_RED_INTEGER, "GL_RED_INTEGER"}, |
| 4184 {GL_RG, "GL_RG"}, |
| 4185 {GL_RG_INTEGER, "GL_RG_INTEGER"}, |
| 4186 {GL_RGB_INTEGER, "GL_RGB_INTEGER"}, |
| 4182 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"}, | 4187 {GL_RGBA_INTEGER, "GL_RGBA_INTEGER"}, |
| 4183 }; | 4188 }; |
| 4184 return GLES2Util::GetQualifiedEnumString(string_table, | 4189 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4185 arraysize(string_table), value); | 4190 arraysize(string_table), value); |
| 4186 } | 4191 } |
| 4187 | 4192 |
| 4188 std::string GLES2Util::GetStringReadPixelType(uint32_t value) { | 4193 std::string GLES2Util::GetStringReadPixelType(uint32_t value) { |
| 4189 static const EnumToString string_table[] = { | 4194 static const EnumToString string_table[] = { |
| 4190 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, | 4195 {GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE"}, |
| 4191 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"}, | 4196 {GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5"}, |
| 4192 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"}, | 4197 {GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4"}, |
| 4193 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"}, | 4198 {GL_UNSIGNED_SHORT_5_5_5_1, "GL_UNSIGNED_SHORT_5_5_5_1"}, |
| 4199 {GL_BYTE, "GL_BYTE"}, |
| 4200 {GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT"}, |
| 4201 {GL_SHORT, "GL_SHORT"}, |
| 4194 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"}, | 4202 {GL_UNSIGNED_INT, "GL_UNSIGNED_INT"}, |
| 4195 {GL_INT, "GL_INT"}, | 4203 {GL_INT, "GL_INT"}, |
| 4204 {GL_HALF_FLOAT, "GL_HALF_FLOAT"}, |
| 4196 {GL_FLOAT, "GL_FLOAT"}, | 4205 {GL_FLOAT, "GL_FLOAT"}, |
| 4197 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"}, | 4206 {GL_UNSIGNED_INT_2_10_10_10_REV, "GL_UNSIGNED_INT_2_10_10_10_REV"}, |
| 4198 }; | 4207 }; |
| 4199 return GLES2Util::GetQualifiedEnumString(string_table, | 4208 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4200 arraysize(string_table), value); | 4209 arraysize(string_table), value); |
| 4201 } | 4210 } |
| 4202 | 4211 |
| 4203 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) { | 4212 std::string GLES2Util::GetStringRenderBufferFormat(uint32_t value) { |
| 4204 static const EnumToString string_table[] = { | 4213 static const EnumToString string_table[] = { |
| 4205 {GL_RGBA4, "GL_RGBA4"}, | 4214 {GL_RGBA4, "GL_RGBA4"}, |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4796 | 4805 |
| 4797 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { | 4806 std::string GLES2Util::GetStringVertexPointer(uint32_t value) { |
| 4798 static const EnumToString string_table[] = { | 4807 static const EnumToString string_table[] = { |
| 4799 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, | 4808 {GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER"}, |
| 4800 }; | 4809 }; |
| 4801 return GLES2Util::GetQualifiedEnumString(string_table, | 4810 return GLES2Util::GetQualifiedEnumString(string_table, |
| 4802 arraysize(string_table), value); | 4811 arraysize(string_table), value); |
| 4803 } | 4812 } |
| 4804 | 4813 |
| 4805 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 4814 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| OLD | NEW |