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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h

Issue 935173002: Add glGetSynciv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sync
Patch Set: working Created 5 years, 10 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 273b1e05288ecfee8902d8b00504d92a31370ebd..899a2f4a01153e73069872b8b2aebab3fb95f946 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
@@ -5109,6 +5109,17 @@ std::string GLES2Util::GetStringSyncCondition(uint32_t value) {
arraysize(string_table), value);
}
+std::string GLES2Util::GetStringSyncParameter(uint32_t value) {
+ static const EnumToString string_table[] = {
+ {GL_SYNC_STATUS, "GL_SYNC_STATUS"},
+ {GL_OBJECT_TYPE, "GL_OBJECT_TYPE"},
+ {GL_SYNC_CONDITION, "GL_SYNC_CONDITION"},
+ {GL_SYNC_FLAGS, "GL_SYNC_FLAGS"},
+ };
+ return GLES2Util::GetQualifiedEnumString(string_table,
+ arraysize(string_table), value);
+}
+
std::string GLES2Util::GetStringTexture3DTarget(uint32_t value) {
static const EnumToString string_table[] = {
{GL_TEXTURE_3D, "GL_TEXTURE_3D"},
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698