| 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 e1321cffe8a0b0bae82c878f80a2c7d7c1bd883e..94a67077e732a6881352a60aa34d5f7b26624037 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| @@ -4850,6 +4850,30 @@ TEST_F(GLES2FormatTest, ScheduleOverlayPlaneCHROMIUM) {
|
| CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| }
|
|
|
| +TEST_F(GLES2FormatTest, ScheduleSolidColorOverlayPlaneCHROMIUM) {
|
| + cmds::ScheduleSolidColorOverlayPlaneCHROMIUM& cmd =
|
| + *GetBufferAs<cmds::ScheduleSolidColorOverlayPlaneCHROMIUM>();
|
| + void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11), static_cast<GLint>(12),
|
| + static_cast<GLint>(13), static_cast<GLint>(14),
|
| + static_cast<GLint>(15), static_cast<GLclampf>(16),
|
| + static_cast<GLclampf>(17), static_cast<GLclampf>(18),
|
| + static_cast<GLclampf>(19));
|
| + EXPECT_EQ(static_cast<uint32_t>(
|
| + cmds::ScheduleSolidColorOverlayPlaneCHROMIUM::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLint>(11), cmd.plane_z_order);
|
| + EXPECT_EQ(static_cast<GLint>(12), cmd.bounds_x);
|
| + EXPECT_EQ(static_cast<GLint>(13), cmd.bounds_y);
|
| + EXPECT_EQ(static_cast<GLint>(14), cmd.bounds_width);
|
| + EXPECT_EQ(static_cast<GLint>(15), cmd.bounds_height);
|
| + EXPECT_EQ(static_cast<GLclampf>(16), cmd.red);
|
| + EXPECT_EQ(static_cast<GLclampf>(17), cmd.green);
|
| + EXPECT_EQ(static_cast<GLclampf>(18), cmd.blue);
|
| + EXPECT_EQ(static_cast<GLclampf>(19), cmd.alpha);
|
| + 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));
|
|
|