OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 7 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" | 10 #include "gpu/command_buffer/service/cmd_buffer_engine.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 using namespace cmds; | 30 using namespace cmds; |
31 | 31 |
32 class GLES2DecoderTest3 : public GLES2DecoderTestBase { | 32 class GLES2DecoderTest3 : public GLES2DecoderTestBase { |
33 public: | 33 public: |
34 GLES2DecoderTest3() { } | 34 GLES2DecoderTest3() { } |
35 }; | 35 }; |
36 | 36 |
37 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest3, ::testing::Bool()); | 37 INSTANTIATE_TEST_CASE_P(Service, GLES2DecoderTest3, ::testing::Bool()); |
38 | 38 |
39 template <> | 39 template <> |
| 40 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix3fvImmediate, 0>( |
| 41 bool /* valid */) { |
| 42 SetupShaderForUniform(GL_FLOAT_MAT3); |
| 43 }; |
| 44 |
| 45 template <> |
40 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix4fvImmediate, 0>( | 46 void GLES2DecoderTestBase::SpecializedSetup<cmds::UniformMatrix4fvImmediate, 0>( |
41 bool /* valid */) { | 47 bool /* valid */) { |
42 SetupShaderForUniform(GL_FLOAT_MAT4); | 48 SetupShaderForUniform(GL_FLOAT_MAT4); |
43 }; | 49 }; |
44 | 50 |
45 | 51 |
46 template <> | 52 template <> |
47 void GLES2DecoderTestBase::SpecializedSetup<cmds::UseProgram, 0>( | 53 void GLES2DecoderTestBase::SpecializedSetup<cmds::UseProgram, 0>( |
48 bool /* valid */) { | 54 bool /* valid */) { |
49 // Needs the same setup as LinkProgram. | 55 // Needs the same setup as LinkProgram. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 119 |
114 end_cmd.Init(); | 120 end_cmd.Init(); |
115 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd)); | 121 EXPECT_EQ(error::kNoError, ExecuteCmd(end_cmd)); |
116 EXPECT_EQ(GL_NO_ERROR, GetGLError()); | 122 EXPECT_EQ(GL_NO_ERROR, GetGLError()); |
117 } | 123 } |
118 | 124 |
119 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h" | 125 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h" |
120 | 126 |
121 } // namespace gles2 | 127 } // namespace gles2 |
122 } // namespace gpu | 128 } // namespace gpu |
OLD | NEW |