| 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 a150a58ef6a8f4932821b1caaeb7eb5c4c3a3e01..b64e589433a52d2e2323a5bffa9f538073c3d556 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| @@ -3559,5 +3559,18 @@ TEST_F(GLES2FormatTest, GetTranslatedShaderSourceANGLE) {
|
| next_cmd, sizeof(cmd));
|
| }
|
|
|
| +TEST_F(GLES2FormatTest, SetSurfaceVisibleCHROMIUM) {
|
| + SetSurfaceVisibleCHROMIUM& cmd = *GetBufferAs<SetSurfaceVisibleCHROMIUM>();
|
| + void* next_cmd = cmd.Set(
|
| + &cmd,
|
| + static_cast<GLboolean>(11));
|
| + EXPECT_EQ(static_cast<uint32>(SetSurfaceVisibleCHROMIUM::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLboolean>(11), cmd.visible);
|
| + CheckBytesWrittenMatchesExpectedSize(
|
| + next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
|
|
|
|
|