| 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 25cdeb645df798230735d6f9d18fa1ffcc4c3cec..332e856c0ea5803a708a8b77d992c57708b9bf68 100644
|
| --- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| +++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
| @@ -5421,4 +5421,15 @@ TEST_F(GLES2FormatTest, SwapBuffersWithDamageCHROMIUM) {
|
| CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| }
|
|
|
| +TEST_F(GLES2FormatTest, SetSurfaceHandleCHROMIUM) {
|
| + cmds::SetSurfaceHandleCHROMIUM& cmd =
|
| + *GetBufferAs<cmds::SetSurfaceHandleCHROMIUM>();
|
| + void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11));
|
| + EXPECT_EQ(static_cast<uint32_t>(cmds::SetSurfaceHandleCHROMIUM::kCmdId),
|
| + cmd.header.command);
|
| + EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
|
| + EXPECT_EQ(static_cast<GLint>(11), cmd.surfaceHandle);
|
| + CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
| +}
|
| +
|
| #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_
|
|
|