diff options
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_format_test_autogen.h')
-rw-r--r-- | gpu/command_buffer/common/gles2_cmd_format_test_autogen.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h index 7166d5a..e362eab 100644 --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h @@ -3862,6 +3862,19 @@ TEST_F(GLES2FormatTest, EndTransformFeedback) { CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); } +TEST_F(GLES2FormatTest, SetDisjointValueSyncCHROMIUM) { + cmds::SetDisjointValueSyncCHROMIUM& cmd = + *GetBufferAs<cmds::SetDisjointValueSyncCHROMIUM>(); + void* next_cmd = + cmd.Set(&cmd, static_cast<uint32_t>(11), static_cast<uint32_t>(12)); + EXPECT_EQ(static_cast<uint32_t>(cmds::SetDisjointValueSyncCHROMIUM::kCmdId), + cmd.header.command); + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); + EXPECT_EQ(static_cast<uint32_t>(11), cmd.sync_data_shm_id); + EXPECT_EQ(static_cast<uint32_t>(12), cmd.sync_data_shm_offset); + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); +} + TEST_F(GLES2FormatTest, InsertEventMarkerEXT) { cmds::InsertEventMarkerEXT& cmd = *GetBufferAs<cmds::InsertEventMarkerEXT>(); void* next_cmd = cmd.Set(&cmd, static_cast<GLuint>(11)); |