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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
index 1988472b7c794eb2f5e359cd0d3bdcfe5963aacf..ab4356ec617f8773cbaeb4527a65de6b323d1812 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
@@ -343,9 +343,13 @@ static GLES2Util::EnumToString enum_to_string_table[] = {
{ 0x85B5, "GL_VERTEX_ARRAY_BINDING_OES", },
{ 0x8253, "GL_GUILTY_CONTEXT_RESET_ARB", },
{ 0x00200000, "GL_STENCIL_BUFFER_BIT5_QCOM", },
+ { 0x8D68, "GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES", },
{ 0x8D61, "GL_HALF_FLOAT_OES", },
{ 0x8D62, "GL_RGB565", },
{ 0x8D64, "GL_ETC1_RGB8_OES", },
+ { 0x8D65, "GL_TEXTURE_EXTERNAL_OES", },
+ { 0x8D66, "GL_SAMPLER_EXTERNAL_OES", },
+ { 0x8D67, "GL_TEXTURE_BINDING_EXTERNAL_OES", },
{ 0x2800, "GL_TEXTURE_MAG_FILTER", },
{ 0x2801, "GL_TEXTURE_MIN_FILTER", },
{ 0x2802, "GL_TEXTURE_WRAP_S", },
@@ -727,6 +731,20 @@ std::string GLES2Util::GetStringGetMaxIndexType(uint32 value) {
string_table, arraysize(string_table), value);
}
+std::string GLES2Util::GetStringGetTexParamTarget(uint32 value) {
+ static EnumToString string_table[] = {
+ { GL_TEXTURE_2D, "GL_TEXTURE_2D" },
+ { GL_TEXTURE_CUBE_MAP_POSITIVE_X, "GL_TEXTURE_CUBE_MAP_POSITIVE_X" },
+ { GL_TEXTURE_CUBE_MAP_NEGATIVE_X, "GL_TEXTURE_CUBE_MAP_NEGATIVE_X" },
+ { GL_TEXTURE_CUBE_MAP_POSITIVE_Y, "GL_TEXTURE_CUBE_MAP_POSITIVE_Y" },
+ { GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Y" },
+ { GL_TEXTURE_CUBE_MAP_POSITIVE_Z, "GL_TEXTURE_CUBE_MAP_POSITIVE_Z" },
+ { GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, "GL_TEXTURE_CUBE_MAP_NEGATIVE_Z" },
+ };
+ return GLES2Util::GetQualifiedEnumString(
+ string_table, arraysize(string_table), value);
+}
+
std::string GLES2Util::GetStringHintMode(uint32 value) {
static EnumToString string_table[] = {
{ GL_FASTEST, "GL_FASTEST" },

Powered by Google App Engine
This is Rietveld 408576698