Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h |
=================================================================== |
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h (revision 40197) |
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h (working copy) |
@@ -3217,8 +3217,6 @@ |
static const CommandId kCmdId = kGetError; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef GLenum Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -3464,30 +3462,55 @@ |
header.SetCmd<ValueType>(); |
} |
- void Init(GLuint _program, uint32 _bucket_id) { |
+ void Init( |
+ GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _infolog_shm_id, |
+ uint32 _infolog_shm_offset) { |
SetHeader(); |
program = _program; |
- bucket_id = _bucket_id; |
+ bufsize = _bufsize; |
+ length_shm_id = _length_shm_id; |
+ length_shm_offset = _length_shm_offset; |
+ infolog_shm_id = _infolog_shm_id; |
+ infolog_shm_offset = _infolog_shm_offset; |
} |
- void* Set(void* cmd, GLuint _program, uint32 _bucket_id) { |
- static_cast<ValueType*>(cmd)->Init(_program, _bucket_id); |
+ void* Set( |
+ void* cmd, GLuint _program, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _infolog_shm_id, |
+ uint32 _infolog_shm_offset) { |
+ static_cast<ValueType*>( |
+ cmd)->Init( |
+ _program, _bufsize, _length_shm_id, _length_shm_offset, |
+ _infolog_shm_id, _infolog_shm_offset); |
return NextCmdAddress<ValueType>(cmd); |
} |
gpu::CommandHeader header; |
uint32 program; |
- uint32 bucket_id; |
+ int32 bufsize; |
+ uint32 length_shm_id; |
+ uint32 length_shm_offset; |
+ uint32 infolog_shm_id; |
+ uint32 infolog_shm_offset; |
}; |
-COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 12, |
- Sizeof_GetProgramInfoLog_is_not_12); |
+COMPILE_ASSERT(sizeof(GetProgramInfoLog) == 28, |
+ Sizeof_GetProgramInfoLog_is_not_28); |
COMPILE_ASSERT(offsetof(GetProgramInfoLog, header) == 0, |
OffsetOf_GetProgramInfoLog_header_not_0); |
COMPILE_ASSERT(offsetof(GetProgramInfoLog, program) == 4, |
OffsetOf_GetProgramInfoLog_program_not_4); |
-COMPILE_ASSERT(offsetof(GetProgramInfoLog, bucket_id) == 8, |
- OffsetOf_GetProgramInfoLog_bucket_id_not_8); |
+COMPILE_ASSERT(offsetof(GetProgramInfoLog, bufsize) == 8, |
+ OffsetOf_GetProgramInfoLog_bufsize_not_8); |
+COMPILE_ASSERT(offsetof(GetProgramInfoLog, length_shm_id) == 12, |
+ OffsetOf_GetProgramInfoLog_length_shm_id_not_12); |
+COMPILE_ASSERT(offsetof(GetProgramInfoLog, length_shm_offset) == 16, |
+ OffsetOf_GetProgramInfoLog_length_shm_offset_not_16); |
+COMPILE_ASSERT(offsetof(GetProgramInfoLog, infolog_shm_id) == 20, |
+ OffsetOf_GetProgramInfoLog_infolog_shm_id_not_20); |
+COMPILE_ASSERT(offsetof(GetProgramInfoLog, infolog_shm_offset) == 24, |
+ OffsetOf_GetProgramInfoLog_infolog_shm_offset_not_24); |
struct GetRenderbufferParameteriv { |
typedef GetRenderbufferParameteriv ValueType; |
@@ -3604,30 +3627,55 @@ |
header.SetCmd<ValueType>(); |
} |
- void Init(GLuint _shader, uint32 _bucket_id) { |
+ void Init( |
+ GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _infolog_shm_id, |
+ uint32 _infolog_shm_offset) { |
SetHeader(); |
shader = _shader; |
- bucket_id = _bucket_id; |
+ bufsize = _bufsize; |
+ length_shm_id = _length_shm_id; |
+ length_shm_offset = _length_shm_offset; |
+ infolog_shm_id = _infolog_shm_id; |
+ infolog_shm_offset = _infolog_shm_offset; |
} |
- void* Set(void* cmd, GLuint _shader, uint32 _bucket_id) { |
- static_cast<ValueType*>(cmd)->Init(_shader, _bucket_id); |
+ void* Set( |
+ void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _infolog_shm_id, |
+ uint32 _infolog_shm_offset) { |
+ static_cast<ValueType*>( |
+ cmd)->Init( |
+ _shader, _bufsize, _length_shm_id, _length_shm_offset, |
+ _infolog_shm_id, _infolog_shm_offset); |
return NextCmdAddress<ValueType>(cmd); |
} |
gpu::CommandHeader header; |
uint32 shader; |
- uint32 bucket_id; |
+ int32 bufsize; |
+ uint32 length_shm_id; |
+ uint32 length_shm_offset; |
+ uint32 infolog_shm_id; |
+ uint32 infolog_shm_offset; |
}; |
-COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 12, |
- Sizeof_GetShaderInfoLog_is_not_12); |
+COMPILE_ASSERT(sizeof(GetShaderInfoLog) == 28, |
+ Sizeof_GetShaderInfoLog_is_not_28); |
COMPILE_ASSERT(offsetof(GetShaderInfoLog, header) == 0, |
OffsetOf_GetShaderInfoLog_header_not_0); |
COMPILE_ASSERT(offsetof(GetShaderInfoLog, shader) == 4, |
OffsetOf_GetShaderInfoLog_shader_not_4); |
-COMPILE_ASSERT(offsetof(GetShaderInfoLog, bucket_id) == 8, |
- OffsetOf_GetShaderInfoLog_bucket_id_not_8); |
+COMPILE_ASSERT(offsetof(GetShaderInfoLog, bufsize) == 8, |
+ OffsetOf_GetShaderInfoLog_bufsize_not_8); |
+COMPILE_ASSERT(offsetof(GetShaderInfoLog, length_shm_id) == 12, |
+ OffsetOf_GetShaderInfoLog_length_shm_id_not_12); |
+COMPILE_ASSERT(offsetof(GetShaderInfoLog, length_shm_offset) == 16, |
+ OffsetOf_GetShaderInfoLog_length_shm_offset_not_16); |
+COMPILE_ASSERT(offsetof(GetShaderInfoLog, infolog_shm_id) == 20, |
+ OffsetOf_GetShaderInfoLog_infolog_shm_id_not_20); |
+COMPILE_ASSERT(offsetof(GetShaderInfoLog, infolog_shm_offset) == 24, |
+ OffsetOf_GetShaderInfoLog_infolog_shm_offset_not_24); |
struct GetShaderPrecisionFormat { |
typedef GetShaderPrecisionFormat ValueType; |
@@ -3709,30 +3757,55 @@ |
header.SetCmd<ValueType>(); |
} |
- void Init(GLuint _shader, uint32 _bucket_id) { |
+ void Init( |
+ GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _source_shm_id, |
+ uint32 _source_shm_offset) { |
SetHeader(); |
shader = _shader; |
- bucket_id = _bucket_id; |
+ bufsize = _bufsize; |
+ length_shm_id = _length_shm_id; |
+ length_shm_offset = _length_shm_offset; |
+ source_shm_id = _source_shm_id; |
+ source_shm_offset = _source_shm_offset; |
} |
- void* Set(void* cmd, GLuint _shader, uint32 _bucket_id) { |
- static_cast<ValueType*>(cmd)->Init(_shader, _bucket_id); |
+ void* Set( |
+ void* cmd, GLuint _shader, GLsizei _bufsize, uint32 _length_shm_id, |
+ uint32 _length_shm_offset, uint32 _source_shm_id, |
+ uint32 _source_shm_offset) { |
+ static_cast<ValueType*>( |
+ cmd)->Init( |
+ _shader, _bufsize, _length_shm_id, _length_shm_offset, |
+ _source_shm_id, _source_shm_offset); |
return NextCmdAddress<ValueType>(cmd); |
} |
gpu::CommandHeader header; |
uint32 shader; |
- uint32 bucket_id; |
+ int32 bufsize; |
+ uint32 length_shm_id; |
+ uint32 length_shm_offset; |
+ uint32 source_shm_id; |
+ uint32 source_shm_offset; |
}; |
-COMPILE_ASSERT(sizeof(GetShaderSource) == 12, |
- Sizeof_GetShaderSource_is_not_12); |
+COMPILE_ASSERT(sizeof(GetShaderSource) == 28, |
+ Sizeof_GetShaderSource_is_not_28); |
COMPILE_ASSERT(offsetof(GetShaderSource, header) == 0, |
OffsetOf_GetShaderSource_header_not_0); |
COMPILE_ASSERT(offsetof(GetShaderSource, shader) == 4, |
OffsetOf_GetShaderSource_shader_not_4); |
-COMPILE_ASSERT(offsetof(GetShaderSource, bucket_id) == 8, |
- OffsetOf_GetShaderSource_bucket_id_not_8); |
+COMPILE_ASSERT(offsetof(GetShaderSource, bufsize) == 8, |
+ OffsetOf_GetShaderSource_bufsize_not_8); |
+COMPILE_ASSERT(offsetof(GetShaderSource, length_shm_id) == 12, |
+ OffsetOf_GetShaderSource_length_shm_id_not_12); |
+COMPILE_ASSERT(offsetof(GetShaderSource, length_shm_offset) == 16, |
+ OffsetOf_GetShaderSource_length_shm_offset_not_16); |
+COMPILE_ASSERT(offsetof(GetShaderSource, source_shm_id) == 20, |
+ OffsetOf_GetShaderSource_source_shm_id_not_20); |
+COMPILE_ASSERT(offsetof(GetShaderSource, source_shm_offset) == 24, |
+ OffsetOf_GetShaderSource_source_shm_offset_not_24); |
struct GetString { |
typedef GetString ValueType; |
@@ -3747,30 +3820,26 @@ |
header.SetCmd<ValueType>(); |
} |
- void Init(GLenum _name, uint32 _bucket_id) { |
+ void Init(GLenum _name) { |
SetHeader(); |
name = _name; |
- bucket_id = _bucket_id; |
} |
- void* Set(void* cmd, GLenum _name, uint32 _bucket_id) { |
- static_cast<ValueType*>(cmd)->Init(_name, _bucket_id); |
+ void* Set(void* cmd, GLenum _name) { |
+ static_cast<ValueType*>(cmd)->Init(_name); |
return NextCmdAddress<ValueType>(cmd); |
} |
gpu::CommandHeader header; |
uint32 name; |
- uint32 bucket_id; |
}; |
-COMPILE_ASSERT(sizeof(GetString) == 12, |
- Sizeof_GetString_is_not_12); |
+COMPILE_ASSERT(sizeof(GetString) == 8, |
+ Sizeof_GetString_is_not_8); |
COMPILE_ASSERT(offsetof(GetString, header) == 0, |
OffsetOf_GetString_header_not_0); |
COMPILE_ASSERT(offsetof(GetString, name) == 4, |
OffsetOf_GetString_name_not_4); |
-COMPILE_ASSERT(offsetof(GetString, bucket_id) == 8, |
- OffsetOf_GetString_bucket_id_not_8); |
struct GetTexParameterfv { |
typedef GetTexParameterfv ValueType; |
@@ -4178,8 +4247,6 @@ |
static const CommandId kCmdId = kIsBuffer; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4225,8 +4292,6 @@ |
static const CommandId kCmdId = kIsEnabled; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4272,8 +4337,6 @@ |
static const CommandId kCmdId = kIsFramebuffer; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4320,8 +4383,6 @@ |
static const CommandId kCmdId = kIsProgram; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4368,8 +4429,6 @@ |
static const CommandId kCmdId = kIsRenderbuffer; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4416,8 +4475,6 @@ |
static const CommandId kCmdId = kIsShader; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |
@@ -4463,8 +4520,6 @@ |
static const CommandId kCmdId = kIsTexture; |
static const cmd::ArgFlags kArgFlags = cmd::kFixed; |
- typedef uint32 Result; |
- |
static uint32 ComputeSize() { |
return static_cast<uint32>(sizeof(ValueType)); // NOLINT |
} |