summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gles2_cmd_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_format.h')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_format.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_format.h b/gpu/command_buffer/common/gles2_cmd_format.h
index c642892..4f6f649 100644
--- a/gpu/command_buffer/common/gles2_cmd_format.h
+++ b/gpu/command_buffer/common/gles2_cmd_format.h
@@ -93,6 +93,8 @@ struct GetAttribLocation {
static const CommandId kCmdId = kGetAttribLocation;
static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+ typedef GLint Result;
+
static uint32 ComputeSize() {
return static_cast<uint32>(sizeof(ValueType)); // NOLINT
}
@@ -156,6 +158,8 @@ struct GetAttribLocationImmediate {
static const CommandId kCmdId = kGetAttribLocationImmediate;
static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
+ typedef GLint Result;
+
static uint32 ComputeDataSize(const char* s) {
return strlen(s);
}
@@ -213,6 +217,8 @@ struct GetUniformLocation {
static const CommandId kCmdId = kGetUniformLocation;
static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+ typedef GLint Result;
+
static uint32 ComputeSize() {
return static_cast<uint32>(sizeof(ValueType)); // NOLINT
}
@@ -276,6 +282,8 @@ struct GetUniformLocationImmediate {
static const CommandId kCmdId = kGetUniformLocationImmediate;
static const cmd::ArgFlags kArgFlags = cmd::kAtLeastN;
+ typedef GLint Result;
+
static uint32 ComputeDataSize(const char* s) {
return strlen(s);
}