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

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

Issue 2127001: Makes shader translation a runtime switch.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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
===================================================================
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h (revision 47428)
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h (working copy)
@@ -8577,6 +8577,8 @@
static const CommandId kCmdId = kCommandBufferEnable;
static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+ typedef GLint Result;
+
static uint32 ComputeSize() {
return static_cast<uint32>(sizeof(ValueType)); // NOLINT
}
@@ -8585,30 +8587,38 @@
header.SetCmd<ValueType>();
}
- void Init(GLenum _cap, GLboolean _enable) {
+ void Init(
+ GLuint _bucket_id, uint32 _result_shm_id, uint32 _result_shm_offset) {
SetHeader();
- cap = _cap;
- enable = _enable;
+ bucket_id = _bucket_id;
+ result_shm_id = _result_shm_id;
+ result_shm_offset = _result_shm_offset;
}
- void* Set(void* cmd, GLenum _cap, GLboolean _enable) {
- static_cast<ValueType*>(cmd)->Init(_cap, _enable);
+ void* Set(
+ void* cmd, GLuint _bucket_id, uint32 _result_shm_id,
+ uint32 _result_shm_offset) {
+ static_cast<ValueType*>(
+ cmd)->Init(_bucket_id, _result_shm_id, _result_shm_offset);
return NextCmdAddress<ValueType>(cmd);
}
gpu::CommandHeader header;
- uint32 cap;
- uint32 enable;
+ uint32 bucket_id;
+ uint32 result_shm_id;
+ uint32 result_shm_offset;
};
-COMPILE_ASSERT(sizeof(CommandBufferEnable) == 12,
- Sizeof_CommandBufferEnable_is_not_12);
+COMPILE_ASSERT(sizeof(CommandBufferEnable) == 16,
+ Sizeof_CommandBufferEnable_is_not_16);
COMPILE_ASSERT(offsetof(CommandBufferEnable, header) == 0,
OffsetOf_CommandBufferEnable_header_not_0);
-COMPILE_ASSERT(offsetof(CommandBufferEnable, cap) == 4,
- OffsetOf_CommandBufferEnable_cap_not_4);
-COMPILE_ASSERT(offsetof(CommandBufferEnable, enable) == 8,
- OffsetOf_CommandBufferEnable_enable_not_8);
+COMPILE_ASSERT(offsetof(CommandBufferEnable, bucket_id) == 4,
+ OffsetOf_CommandBufferEnable_bucket_id_not_4);
+COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_id) == 8,
+ OffsetOf_CommandBufferEnable_result_shm_id_not_8);
+COMPILE_ASSERT(offsetof(CommandBufferEnable, result_shm_offset) == 12,
+ OffsetOf_CommandBufferEnable_result_shm_offset_not_12);
#endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_AUTOGEN_H_
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698