| Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| 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 0b02f87c0bbe17b40726f4637ad8dc74a7b0bf61..6ca089754870ffa7bb2f346f1ced77da221c8cb1 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| @@ -4806,6 +4806,23 @@ TEST_F(GLES2FormatTest, ScheduleOverlayPlaneCHROMIUM) {
|
| CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| }
|
|
|
| +TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) {
|
| + cmds::ScheduleCALayerCHROMIUM& cmd =
|
| + *GetBufferAs<cmds::ScheduleCALayerCHROMIUM>();
|
| + void* next_cmd = cmd.Set(&cmd, static_cast<GLuint>(11),
|
| + static_cast<GLfloat>(12), static_cast<GLuint>(13),
|
| + static_cast<GLuint>(14), static_cast<GLuint>(15));
|
| + EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id);
|
| + EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity);
|
| + EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color);
|
| + EXPECT_EQ(static_cast<GLuint>(14), cmd.shm_id);
|
| + EXPECT_EQ(static_cast<GLuint>(15), cmd.shm_offset);
|
| + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| TEST_F(GLES2FormatTest, SwapInterval) {
|
| cmds::SwapInterval& cmd = *GetBufferAs<cmds::SwapInterval>();
|
| void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11));
|
|
|