| Index: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| diff --git a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| index 68c28704a8409faa1c98abc6de3f52655739e950..48bddf4e90bc1f2a7e32a8c73c1f8a9ee9954683 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| @@ -1839,4 +1839,42 @@ TEST_F(GLES2ImplementationTest, DiscardBackbufferCHROMIUM) {
|
| gl_->DiscardBackbufferCHROMIUM();
|
| EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| }
|
| +
|
| +TEST_F(GLES2ImplementationTest, MatrixMode) {
|
| + struct Cmds {
|
| + cmds::MatrixMode cmd;
|
| + };
|
| + Cmds expected;
|
| + expected.cmd.Init(GL_PROJECTION);
|
| +
|
| + gl_->MatrixMode(GL_PROJECTION);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| +
|
| +TEST_F(GLES2ImplementationTest, LoadMatrixf) {
|
| + GLfloat data[16] = {0};
|
| + struct Cmds {
|
| + cmds::LoadMatrixfImmediate cmd;
|
| + GLfloat data[16];
|
| + };
|
| +
|
| + for (int jj = 0; jj < 16; ++jj) {
|
| + data[jj] = static_cast<GLfloat>(jj);
|
| + }
|
| + Cmds expected;
|
| + expected.cmd.Init(&data[0]);
|
| + gl_->LoadMatrixf(&data[0]);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| +
|
| +TEST_F(GLES2ImplementationTest, LoadIdentity) {
|
| + struct Cmds {
|
| + cmds::LoadIdentity cmd;
|
| + };
|
| + Cmds expected;
|
| + expected.cmd.Init();
|
| +
|
| + gl_->LoadIdentity();
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
|
|
|