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 db3a6c48f0366e5ade71c671fa5d0fad73bc1d8c..273b1e05288ecfee8902d8b00504d92a31370ebd 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h |
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h |
@@ -5260,6 +5260,38 @@ std::string GLES2Util::GetStringTransformFeedbackPrimitiveMode(uint32_t value) { |
arraysize(string_table), value); |
} |
+std::string GLES2Util::GetStringUniformBlockParameter(uint32_t value) { |
+ static const EnumToString string_table[] = { |
+ {GL_UNIFORM_BLOCK_BINDING, "GL_UNIFORM_BLOCK_BINDING"}, |
+ {GL_UNIFORM_BLOCK_DATA_SIZE, "GL_UNIFORM_BLOCK_DATA_SIZE"}, |
+ {GL_UNIFORM_BLOCK_NAME_LENGTH, "GL_UNIFORM_BLOCK_NAME_LENGTH"}, |
+ {GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS, "GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS"}, |
+ {GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, |
+ "GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES"}, |
+ {GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, |
+ "GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER"}, |
+ {GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, |
+ "GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER"}, |
+ }; |
+ return GLES2Util::GetQualifiedEnumString(string_table, |
+ arraysize(string_table), value); |
+} |
+ |
+std::string GLES2Util::GetStringUniformParameter(uint32_t value) { |
+ static const EnumToString string_table[] = { |
+ {GL_UNIFORM_SIZE, "GL_UNIFORM_SIZE"}, |
+ {GL_UNIFORM_TYPE, "GL_UNIFORM_TYPE"}, |
+ {GL_UNIFORM_NAME_LENGTH, "GL_UNIFORM_NAME_LENGTH"}, |
+ {GL_UNIFORM_BLOCK_INDEX, "GL_UNIFORM_BLOCK_INDEX"}, |
+ {GL_UNIFORM_OFFSET, "GL_UNIFORM_OFFSET"}, |
+ {GL_UNIFORM_ARRAY_STRIDE, "GL_UNIFORM_ARRAY_STRIDE"}, |
+ {GL_UNIFORM_MATRIX_STRIDE, "GL_UNIFORM_MATRIX_STRIDE"}, |
+ {GL_UNIFORM_IS_ROW_MAJOR, "GL_UNIFORM_IS_ROW_MAJOR"}, |
+ }; |
+ return GLES2Util::GetQualifiedEnumString(string_table, |
+ arraysize(string_table), value); |
+} |
+ |
std::string GLES2Util::GetStringValueBufferTarget(uint32_t value) { |
static const EnumToString string_table[] = { |
{GL_SUBSCRIBED_VALUES_BUFFER_CHROMIUM, |