| 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 e9696c42cc78b6d9f675de45b92fc0b16d36466c..242d5d4a46f897122be5670d9beb202e4251c557 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| +++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h
|
| @@ -1830,4 +1830,31 @@ TEST_F(GLES2ImplementationTest, DiscardBackbufferCHROMIUM) {
|
| gl_->DiscardBackbufferCHROMIUM();
|
| EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| }
|
| +
|
| +TEST_F(GLES2ImplementationTest, MatrixLoadfCHROMIUM) {
|
| + GLfloat data[16] = {0};
|
| + struct Cmds {
|
| + cmds::MatrixLoadfCHROMIUMImmediate cmd;
|
| + GLfloat data[16];
|
| + };
|
| +
|
| + for (int jj = 0; jj < 16; ++jj) {
|
| + data[jj] = static_cast<GLfloat>(jj);
|
| + }
|
| + Cmds expected;
|
| + expected.cmd.Init(GL_PROJECTION_CHROMIUM, &data[0]);
|
| + gl_->MatrixLoadfCHROMIUM(GL_PROJECTION_CHROMIUM, &data[0]);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| +
|
| +TEST_F(GLES2ImplementationTest, MatrixLoadIdentityCHROMIUM) {
|
| + struct Cmds {
|
| + cmds::MatrixLoadIdentityCHROMIUM cmd;
|
| + };
|
| + Cmds expected;
|
| + expected.cmd.Init(GL_PROJECTION_CHROMIUM);
|
| +
|
| + gl_->MatrixLoadIdentityCHROMIUM(GL_PROJECTION_CHROMIUM);
|
| + EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
|
| +}
|
| #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
|
|
|