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

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

Issue 7458008: Support GL_OES_EGL_image_external (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 { 0x84DB, "GL_TEXTURE27", }, 336 { 0x84DB, "GL_TEXTURE27", },
337 { 0x84DC, "GL_TEXTURE28", }, 337 { 0x84DC, "GL_TEXTURE28", },
338 { 0x84DA, "GL_TEXTURE26", }, 338 { 0x84DA, "GL_TEXTURE26", },
339 { 0x8645, "GL_VERTEX_ATTRIB_ARRAY_POINTER", }, 339 { 0x8645, "GL_VERTEX_ATTRIB_ARRAY_POINTER", },
340 { 0x300E, "GL_CONTEXT_LOST", }, 340 { 0x300E, "GL_CONTEXT_LOST", },
341 { 0x2600, "GL_NEAREST", }, 341 { 0x2600, "GL_NEAREST", },
342 { 0x84C4, "GL_TEXTURE4", }, 342 { 0x84C4, "GL_TEXTURE4", },
343 { 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES", }, 343 { 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES", },
344 { 0x8253, "GL_GUILTY_CONTEXT_RESET_ARB", }, 344 { 0x8253, "GL_GUILTY_CONTEXT_RESET_ARB", },
345 { 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM", }, 345 { 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM", },
346 { 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", },
346 { 0x8D61, "GL_HALF_FLOAT_OES", }, 347 { 0x8D61, "GL_HALF_FLOAT_OES", },
347 { 0x8D62, "GL_RGB565", }, 348 { 0x8D62, "GL_RGB565", },
348 { 0x8D64, "GL_ETC1_RGB8_OES", }, 349 { 0x8D64, "GL_ETC1_RGB8_OES", },
350 { 0x8D65, "GL_TEXTURE_EXTERNAL_OES", },
351 { 0x8D66, "GL_SAMPLER_EXTERNAL_OES", },
352 { 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", },
349 { 0x2800, "GL_TEXTURE_MAG_FILTER", }, 353 { 0x2800, "GL_TEXTURE_MAG_FILTER", },
350 { 0x2801, "GL_TEXTURE_MIN_FILTER", }, 354 { 0x2801, "GL_TEXTURE_MIN_FILTER", },
351 { 0x2802, "GL_TEXTURE_WRAP_S", }, 355 { 0x2802, "GL_TEXTURE_WRAP_S", },
352 { 0x2803, "GL_TEXTURE_WRAP_T", }, 356 { 0x2803, "GL_TEXTURE_WRAP_T", },
353 { 0x2703, "GL_LINEAR_MIPMAP_LINEAR", }, 357 { 0x2703, "GL_LINEAR_MIPMAP_LINEAR", },
354 { 0x2702, "GL_NEAREST_MIPMAP_LINEAR", }, 358 { 0x2702, "GL_NEAREST_MIPMAP_LINEAR", },
355 { 0x1F03, "GL_EXTENSIONS", }, 359 { 0x1F03, "GL_EXTENSIONS", },
356 { 0x1F02, "GL_VERSION", }, 360 { 0x1F02, "GL_VERSION", },
357 { 0x1F01, "GL_RENDERER", }, 361 { 0x1F01, "GL_RENDERER", },
358 { 0x1F00, "GL_VENDOR", }, 362 { 0x1F00, "GL_VENDOR", },
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 std::string GLES2Util::GetStringGetMaxIndexType(uint32 value) { 724 std::string GLES2Util::GetStringGetMaxIndexType(uint32 value) {
721 static EnumToString string_table[] = { 725 static EnumToString string_table[] = {
722 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" }, 726 { GL_UNSIGNED_BYTE, "GL_UNSIGNED_BYTE" },
723 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" }, 727 { GL_UNSIGNED_SHORT, "GL_UNSIGNED_SHORT" },
724 { GL_UNSIGNED_INT, "GL_UNSIGNED_INT" }, 728 { GL_UNSIGNED_INT, "GL_UNSIGNED_INT" },
725 }; 729 };
726 return GLES2Util::GetQualifiedEnumString( 730 return GLES2Util::GetQualifiedEnumString(
727 string_table, arraysize(string_table), value); 731 string_table, arraysize(string_table), value);
728 } 732 }
729 733
734 std::string GLES2Util::GetStringGetTexParamTarget(uint32 value) {
735 static EnumToString string_table[] = {
736 { GL_TEXTURE_2D, "GL_TEXTURE_2D" },
737 { GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X" },
738 { GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X" },
739 { GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y" },
740 { GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y" },
741 { GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z" },
742 { GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z" },
743 };
744 return GLES2Util::GetQualifiedEnumString(
745 string_table, arraysize(string_table), value);
746 }
747
730 std::string GLES2Util::GetStringHintMode(uint32 value) { 748 std::string GLES2Util::GetStringHintMode(uint32 value) {
731 static EnumToString string_table[] = { 749 static EnumToString string_table[] = {
732 { GL_FASTEST, "GL_FASTEST" }, 750 { GL_FASTEST, "GL_FASTEST" },
733 { GL_NICEST, "GL_NICEST" }, 751 { GL_NICEST, "GL_NICEST" },
734 { GL_DONT_CARE, "GL_DONT_CARE" }, 752 { GL_DONT_CARE, "GL_DONT_CARE" },
735 }; 753 };
736 return GLES2Util::GetQualifiedEnumString( 754 return GLES2Util::GetQualifiedEnumString(
737 string_table, arraysize(string_table), value); 755 string_table, arraysize(string_table), value);
738 } 756 }
739 757
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 std::string GLES2Util::GetStringVertexPointer(uint32 value) { 1062 std::string GLES2Util::GetStringVertexPointer(uint32 value) {
1045 static EnumToString string_table[] = { 1063 static EnumToString string_table[] = {
1046 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" }, 1064 { GL_VERTEX_ATTRIB_ARRAY_POINTER, "GL_VERTEX_ATTRIB_ARRAY_POINTER" },
1047 }; 1065 };
1048 return GLES2Util::GetQualifiedEnumString( 1066 return GLES2Util::GetQualifiedEnumString(
1049 string_table, arraysize(string_table), value); 1067 string_table, arraysize(string_table), value);
1050 } 1068 }
1051 1069
1052 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_ 1070 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_UTILS_IMPLEMENTATION_AUTOGEN_H_
1053 1071
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698