| 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 | 9 |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1198 .RetiresOnSaturation(); | 1198 .RetiresOnSaturation(); |
| 1199 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) | 1199 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) |
| 1200 .Times(1) | 1200 .Times(1) |
| 1201 .RetiresOnSaturation(); | 1201 .RetiresOnSaturation(); |
| 1202 EXPECT_CALL(*gl_, VertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, NULL)) | 1202 EXPECT_CALL(*gl_, VertexAttribPointer(0, 4, GL_FLOAT, GL_FALSE, 0, NULL)) |
| 1203 .Times(1) | 1203 .Times(1) |
| 1204 .RetiresOnSaturation(); | 1204 .RetiresOnSaturation(); |
| 1205 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, buffer_id)) | 1205 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, buffer_id)) |
| 1206 .Times(1) | 1206 .Times(1) |
| 1207 .RetiresOnSaturation(); | 1207 .RetiresOnSaturation(); |
| 1208 | |
| 1209 EXPECT_CALL(*gl_, DisableVertexAttribArray(0)) | |
| 1210 .Times(1) | |
| 1211 .RetiresOnSaturation(); | |
| 1212 } | 1208 } |
| 1213 } | 1209 } |
| 1214 | 1210 |
| 1215 void GLES2DecoderTestBase::AddExpectationsForSimulatedAttrib0( | 1211 void GLES2DecoderTestBase::AddExpectationsForSimulatedAttrib0( |
| 1216 GLsizei num_vertices, GLuint buffer_id) { | 1212 GLsizei num_vertices, GLuint buffer_id) { |
| 1217 AddExpectationsForSimulatedAttrib0WithError( | 1213 AddExpectationsForSimulatedAttrib0WithError( |
| 1218 num_vertices, buffer_id, GL_NO_ERROR); | 1214 num_vertices, buffer_id, GL_NO_ERROR); |
| 1219 } | 1215 } |
| 1220 | 1216 |
| 1221 void GLES2DecoderWithShaderTestBase::SetUp() { | 1217 void GLES2DecoderWithShaderTestBase::SetUp() { |
| 1222 GLES2DecoderTestBase::SetUp(); | 1218 GLES2DecoderTestBase::SetUp(); |
| 1223 SetupDefaultProgram(); | 1219 SetupDefaultProgram(); |
| 1224 } | 1220 } |
| 1225 | 1221 |
| 1226 } // namespace gles2 | 1222 } // namespace gles2 |
| 1227 } // namespace gpu | 1223 } // namespace gpu |
| OLD | NEW |