| OLD | NEW |
| 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 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 9 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 10 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 { 0x1901, "GL_STENCIL_INDEX", }, | 282 { 0x1901, "GL_STENCIL_INDEX", }, |
| 283 { 0x1902, "GL_DEPTH_COMPONENT", }, | 283 { 0x1902, "GL_DEPTH_COMPONENT", }, |
| 284 { 0x8B56, "GL_BOOL", }, | 284 { 0x8B56, "GL_BOOL", }, |
| 285 { 0x8B9B, "GL_IMPLEMENTATION_COLOR_READ_FORMAT", }, | 285 { 0x8B9B, "GL_IMPLEMENTATION_COLOR_READ_FORMAT", }, |
| 286 { 0x8B9A, "GL_IMPLEMENTATION_COLOR_READ_TYPE", }, | 286 { 0x8B9A, "GL_IMPLEMENTATION_COLOR_READ_TYPE", }, |
| 287 { 0x8823, "GL_WRITEONLY_RENDERING_QCOM", }, | 287 { 0x8823, "GL_WRITEONLY_RENDERING_QCOM", }, |
| 288 { 0x1908, "GL_RGBA", }, | 288 { 0x1908, "GL_RGBA", }, |
| 289 { 0x8DF2, "GL_HIGH_FLOAT", }, | 289 { 0x8DF2, "GL_HIGH_FLOAT", }, |
| 290 { 0x8826, "GL_DRAW_BUFFER1_NV", }, | 290 { 0x8826, "GL_DRAW_BUFFER1_NV", }, |
| 291 { 0x8827, "GL_DRAW_BUFFER2_NV", }, | 291 { 0x8827, "GL_DRAW_BUFFER2_NV", }, |
| 292 { 0x9243, "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM", }, |
| 292 { 0x8DF3, "GL_LOW_INT", }, | 293 { 0x8DF3, "GL_LOW_INT", }, |
| 293 { 0x8B53, "GL_INT_VEC2", }, | 294 { 0x8B53, "GL_INT_VEC2", }, |
| 294 { 0x0C02, "GL_READ_BUFFER_NV", }, | 295 { 0x0C02, "GL_READ_BUFFER_NV", }, |
| 296 { 0x9241, "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM", }, |
| 295 { 0x8B52, "GL_FLOAT_VEC4", }, | 297 { 0x8B52, "GL_FLOAT_VEC4", }, |
| 296 { 0x9240, "GL_UNPACK_FLIP_Y_CHROMIUM", }, | 298 { 0x9240, "GL_UNPACK_FLIP_Y_CHROMIUM", }, |
| 297 { 0x8B51, "GL_FLOAT_VEC3", }, | 299 { 0x8B51, "GL_FLOAT_VEC3", }, |
| 298 { 0x8B50, "GL_FLOAT_VEC2", }, | 300 { 0x8B50, "GL_FLOAT_VEC2", }, |
| 299 { 0x812F, "GL_CLAMP_TO_EDGE", }, | 301 { 0x812F, "GL_CLAMP_TO_EDGE", }, |
| 300 { 0x86A3, "GL_COMPRESSED_TEXTURE_FORMATS", }, | 302 { 0x86A3, "GL_COMPRESSED_TEXTURE_FORMATS", }, |
| 301 { 0x86A2, "GL_NUM_COMPRESSED_TEXTURE_FORMATS", }, | 303 { 0x86A2, "GL_NUM_COMPRESSED_TEXTURE_FORMATS", }, |
| 302 { 0x0CF3, "GL_UNPACK_SKIP_ROWS", }, | 304 { 0x0CF3, "GL_UNPACK_SKIP_ROWS", }, |
| 303 { 0x0CF2, "GL_UNPACK_ROW_LENGTH", }, | 305 { 0x0CF2, "GL_UNPACK_ROW_LENGTH", }, |
| 304 { 0x140C, "GL_FIXED", }, | 306 { 0x140C, "GL_FIXED", }, |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" }, | 882 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" }, |
| 881 }; | 883 }; |
| 882 return GLES2Util::GetQualifiedEnumString( | 884 return GLES2Util::GetQualifiedEnumString( |
| 883 string_table, arraysize(string_table), value); | 885 string_table, arraysize(string_table), value); |
| 884 } | 886 } |
| 885 | 887 |
| 886 std::string GLES2Util::GetStringPixelStore(uint32 value) { | 888 std::string GLES2Util::GetStringPixelStore(uint32 value) { |
| 887 static EnumToString string_table[] = { | 889 static EnumToString string_table[] = { |
| 888 { GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT" }, | 890 { GL_PACK_ALIGNMENT, "GL_PACK_ALIGNMENT" }, |
| 889 { GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT" }, | 891 { GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT" }, |
| 892 { GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM" }, |
| 893 { GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM, |
| 894 "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM" }, |
| 890 }; | 895 }; |
| 891 return GLES2Util::GetQualifiedEnumString( | 896 return GLES2Util::GetQualifiedEnumString( |
| 892 string_table, arraysize(string_table), value); | 897 string_table, arraysize(string_table), value); |
| 893 } | 898 } |
| 894 | 899 |
| 895 std::string GLES2Util::GetStringPixelType(uint32 value) { | 900 std::string GLES2Util::GetStringPixelType(uint32 value) { |
| 896 static EnumToString string_table[] = { | 901 static EnumToString string_table[] = { |
| 897 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, | 902 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, |
| 898 { GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5" }, | 903 { GL_UNSIGNED_SHORT_5_6_5, "GL_UNSIGNED_SHORT_5_6_5" }, |
| 899 { GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4" }, | 904 { GL_UNSIGNED_SHORT_4_4_4_4, "GL_UNSIGNED_SHORT_4_4_4_4" }, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 std::string GLES2Util::GetStringVertexPointer(uint32 value) { | 1232 std::string GLES2Util::GetStringVertexPointer(uint32 value) { |
| 1228 static EnumToString string_table[] = { | 1233 static EnumToString string_table[] = { |
| 1229 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" }, | 1234 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" }, |
| 1230 }; | 1235 }; |
| 1231 return GLES2Util::GetQualifiedEnumString( | 1236 return GLES2Util::GetQualifiedEnumString( |
| 1232 string_table, arraysize(string_table), value); | 1237 string_table, arraysize(string_table), value); |
| 1233 } | 1238 } |
| 1234 | 1239 |
| 1235 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ | 1240 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ |
| 1236 | 1241 |
| OLD | NEW |