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

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

Issue 867333002: Use enum string instead of value in code generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_format_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
index c57a48c4634e6d206d875dd4a73bf09b8cec1289..2867bdd84d0516abdc8bc50cf007c533fe329383 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_autogen.h
@@ -11,6 +11,8 @@
#ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
#define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
+#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
+
struct ActiveTexture {
typedef ActiveTexture ValueType;
static const CommandId kCmdId = kActiveTexture;
@@ -2595,7 +2597,7 @@ struct FenceSync {
gpu::CommandHeader header;
uint32_t client_id;
- static const uint32_t condition = 0x9117;
+ static const uint32_t condition = GL_SYNC_GPU_COMMANDS_COMPLETE;
static const uint32_t flags = 0;
};

Powered by Google App Engine
This is Rietveld 408576698