Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h |
=================================================================== |
--- gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (revision 112643) |
+++ gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (working copy) |
@@ -3297,6 +3297,27 @@ |
next_cmd, sizeof(cmd)); |
} |
+TEST_F(GLES2FormatTest, TexStorage2DEXT) { |
+ TexStorage2DEXT& cmd = *GetBufferAs<TexStorage2DEXT>(); |
+ void* next_cmd = cmd.Set( |
+ &cmd, |
+ static_cast<GLenum>(11), |
+ static_cast<GLsizei>(12), |
+ static_cast<GLint>(13), |
+ static_cast<GLsizei>(14), |
+ static_cast<GLsizei>(15)); |
+ EXPECT_EQ(static_cast<uint32>(TexStorage2DEXT::kCmdId), |
+ cmd.header.command); |
+ EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
+ EXPECT_EQ(static_cast<GLenum>(11), cmd.target); |
+ EXPECT_EQ(static_cast<GLsizei>(12), cmd.levels); |
+ EXPECT_EQ(static_cast<GLint>(13), cmd.internalFormat); |
+ EXPECT_EQ(static_cast<GLsizei>(14), cmd.width); |
+ EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); |
+ CheckBytesWrittenMatchesExpectedSize( |
+ next_cmd, sizeof(cmd)); |
+} |
+ |
TEST_F(GLES2FormatTest, SwapBuffers) { |
SwapBuffers& cmd = *GetBufferAs<SwapBuffers>(); |
void* next_cmd = cmd.Set( |