OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_unittest_base.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 attach_cmd.Init(program_client_id, vertex_shader_client_id); | 1246 attach_cmd.Init(program_client_id, vertex_shader_client_id); |
1247 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); | 1247 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); |
1248 | 1248 |
1249 attach_cmd.Init(program_client_id, fragment_shader_client_id); | 1249 attach_cmd.Init(program_client_id, fragment_shader_client_id); |
1250 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); | 1250 EXPECT_EQ(error::kNoError, ExecuteCmd(attach_cmd)); |
1251 | 1251 |
1252 cmds::LinkProgram link_cmd; | 1252 cmds::LinkProgram link_cmd; |
1253 link_cmd.Init(program_client_id); | 1253 link_cmd.Init(program_client_id); |
1254 | 1254 |
1255 EXPECT_EQ(error::kNoError, ExecuteCmd(link_cmd)); | 1255 EXPECT_EQ(error::kNoError, ExecuteCmd(link_cmd)); |
| 1256 |
| 1257 // Assume the next command will be UseProgram. |
| 1258 SetupExpectationsForClearingUniforms(uniforms, num_uniforms); |
1256 } | 1259 } |
1257 | 1260 |
1258 void GLES2DecoderTestBase::DoEnableVertexAttribArray(GLint index) { | 1261 void GLES2DecoderTestBase::DoEnableVertexAttribArray(GLint index) { |
1259 EXPECT_CALL(*gl_, EnableVertexAttribArray(index)) | 1262 EXPECT_CALL(*gl_, EnableVertexAttribArray(index)) |
1260 .Times(1) | 1263 .Times(1) |
1261 .RetiresOnSaturation(); | 1264 .RetiresOnSaturation(); |
1262 cmds::EnableVertexAttribArray cmd; | 1265 cmds::EnableVertexAttribArray cmd; |
1263 cmd.Init(index); | 1266 cmd.Init(index); |
1264 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); | 1267 EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
1265 } | 1268 } |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 SetupDefaultProgram(); | 1425 SetupDefaultProgram(); |
1423 } | 1426 } |
1424 | 1427 |
1425 // Include the auto-generated part of this file. We split this because it means | 1428 // Include the auto-generated part of this file. We split this because it means |
1426 // we can easily edit the non-auto generated parts right here in this file | 1429 // we can easily edit the non-auto generated parts right here in this file |
1427 // instead of having to edit some template or the code generator. | 1430 // instead of having to edit some template or the code generator. |
1428 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1431 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
1429 | 1432 |
1430 } // namespace gles2 | 1433 } // namespace gles2 |
1431 } // namespace gpu | 1434 } // namespace gpu |
OLD | NEW |