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

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

Issue 7458010: Revert 93066 - Execute all GL commands up to the put offset reported by a each flush.This means g... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_format_autogen.h
===================================================================
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h (revision 93137)
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h (working copy)
@@ -8913,6 +8913,74 @@
COMPILE_ASSERT(offsetof(RequestExtensionCHROMIUM, bucket_id) == 4,
OffsetOf_RequestExtensionCHROMIUM_bucket_id_not_4);
+struct SetLatchCHROMIUM {
+ typedef SetLatchCHROMIUM ValueType;
+ static const CommandId kCmdId = kSetLatchCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+
+ static uint32 ComputeSize() {
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() {
+ header.SetCmd<ValueType>();
+ }
+
+ void Init(GLuint _latch_id) {
+ SetHeader();
+ latch_id = _latch_id;
+ }
+
+ void* Set(void* cmd, GLuint _latch_id) {
+ static_cast<ValueType*>(cmd)->Init(_latch_id);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32 latch_id;
+};
+
+COMPILE_ASSERT(sizeof(SetLatchCHROMIUM) == 8,
+ Sizeof_SetLatchCHROMIUM_is_not_8);
+COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, header) == 0,
+ OffsetOf_SetLatchCHROMIUM_header_not_0);
+COMPILE_ASSERT(offsetof(SetLatchCHROMIUM, latch_id) == 4,
+ OffsetOf_SetLatchCHROMIUM_latch_id_not_4);
+
+struct WaitLatchCHROMIUM {
+ typedef WaitLatchCHROMIUM ValueType;
+ static const CommandId kCmdId = kWaitLatchCHROMIUM;
+ static const cmd::ArgFlags kArgFlags = cmd::kFixed;
+
+ static uint32 ComputeSize() {
+ return static_cast<uint32>(sizeof(ValueType)); // NOLINT
+ }
+
+ void SetHeader() {
+ header.SetCmd<ValueType>();
+ }
+
+ void Init(GLuint _latch_id) {
+ SetHeader();
+ latch_id = _latch_id;
+ }
+
+ void* Set(void* cmd, GLuint _latch_id) {
+ static_cast<ValueType*>(cmd)->Init(_latch_id);
+ return NextCmdAddress<ValueType>(cmd);
+ }
+
+ gpu::CommandHeader header;
+ uint32 latch_id;
+};
+
+COMPILE_ASSERT(sizeof(WaitLatchCHROMIUM) == 8,
+ Sizeof_WaitLatchCHROMIUM_is_not_8);
+COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, header) == 0,
+ OffsetOf_WaitLatchCHROMIUM_header_not_0);
+COMPILE_ASSERT(offsetof(WaitLatchCHROMIUM, latch_id) == 4,
+ OffsetOf_WaitLatchCHROMIUM_latch_id_not_4);
+
struct SetSurfaceCHROMIUM {
typedef SetSurfaceCHROMIUM ValueType;
static const CommandId kCmdId = kSetSurfaceCHROMIUM;
« no previous file with comments | « gpu/command_buffer/common/constants.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