Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
index 3927010799e6aaa2eadba0d83be43e5fae7e8889..e09d54020fcb0c13b79eda417d2cb932ba9128b4 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h |
@@ -12,6 +12,39 @@ |
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_3_AUTOGEN_H_ |
+TEST_P(GLES2DecoderTest3, UniformMatrix3fvImmediateValidArgs) { |
+ cmds::UniformMatrix3fvImmediate& cmd = |
+ *GetImmediateAs<cmds::UniformMatrix3fvImmediate>(); |
+ EXPECT_CALL(*gl_, |
+ UniformMatrix3fv(1, 2, false, reinterpret_cast<GLfloat*>( |
+ ImmediateDataAddress(&cmd)))); |
+ SpecializedSetup<cmds::UniformMatrix3fvImmediate, 0>(true); |
+ GLfloat temp[9 * 2] = { |
+ 0, |
+ }; |
+ cmd.Init(1, 2, &temp[0]); |
+ EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+} |
+ |
+TEST_P(GLES2DecoderTest3, UniformMatrix3x2fvImmediateValidArgs) { |
+ cmds::UniformMatrix3x2fvImmediate& cmd = |
+ *GetImmediateAs<cmds::UniformMatrix3x2fvImmediate>(); |
+ EXPECT_CALL(*gl_, |
+ UniformMatrix3x2fv(1, 2, false, reinterpret_cast<GLfloat*>( |
+ ImmediateDataAddress(&cmd)))); |
+ SpecializedSetup<cmds::UniformMatrix3x2fvImmediate, 0>(true); |
+ GLfloat temp[6 * 2] = { |
+ 0, |
+ }; |
+ cmd.Init(1, 2, &temp[0]); |
+ decoder_->set_unsafe_es3_apis_enabled(true); |
+ EXPECT_EQ(error::kNoError, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+ EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
+ decoder_->set_unsafe_es3_apis_enabled(false); |
+ EXPECT_EQ(error::kUnknownCommand, ExecuteImmediateCmd(cmd, sizeof(temp))); |
+} |
+ |
TEST_P(GLES2DecoderTest3, UniformMatrix3x4fvImmediateValidArgs) { |
cmds::UniformMatrix3x4fvImmediate& cmd = |
*GetImmediateAs<cmds::UniformMatrix3x4fvImmediate>(); |