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 13bd0b86512b500899532d32b02f57b7eae35248..ac02cc52c1890a13c5c8bcbf83591c59937443d3 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_unittest_autogen.h |
@@ -2307,6 +2307,24 @@ TEST_F(GLES2ImplementationTest, UniformMatrix4x3fv) { |
EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
} |
+TEST_F(GLES2ImplementationTest, UniformMatrix4fvWithCustomMatrixCHROMIUM) { |
+ GLfloat data[2][16] = {{0}}; |
+ struct Cmds { |
+ cmds::UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate cmd; |
+ GLfloat data[2][16]; |
+ }; |
+ |
+ Cmds expected; |
+ for (int ii = 0; ii < 2; ++ii) { |
+ for (int jj = 0; jj < 16; ++jj) { |
+ data[ii][jj] = static_cast<GLfloat>(ii * 16 + jj); |
+ } |
+ } |
+ expected.cmd.Init(1, 2, 3, true, &data[0][0]); |
+ gl_->UniformMatrix4fvWithCustomMatrixCHROMIUM(1, 2, 3, true, &data[0][0]); |
+ EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
+} |
+ |
TEST_F(GLES2ImplementationTest, UseProgram) { |
struct Cmds { |
cmds::UseProgram cmd; |