| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 .WillOnce(SetArrayArgument<1>( | 204 .WillOnce(SetArrayArgument<1>( |
| 205 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) | 205 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) |
| 206 .RetiresOnSaturation(); | 206 .RetiresOnSaturation(); |
| 207 | 207 |
| 208 SetupInitCapabilitiesExpectations(); | 208 SetupInitCapabilitiesExpectations(); |
| 209 SetupInitStateExpectations(); | 209 SetupInitStateExpectations(); |
| 210 | 210 |
| 211 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) | 211 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) |
| 212 .Times(1) | 212 .Times(1) |
| 213 .RetiresOnSaturation(); | 213 .RetiresOnSaturation(); |
| 214 EXPECT_CALL(*gl_, Hint(GL_GENERATE_MIPMAP_HINT, GL_DONT_CARE)) | |
| 215 .Times(1) | |
| 216 .RetiresOnSaturation(); | |
| 217 EXPECT_CALL(*gl_, PixelStorei(GL_PACK_ALIGNMENT, 4)) | |
| 218 .Times(1) | |
| 219 .RetiresOnSaturation(); | |
| 220 EXPECT_CALL(*gl_, PixelStorei(GL_UNPACK_ALIGNMENT, 4)) | |
| 221 .Times(1) | |
| 222 .RetiresOnSaturation(); | |
| 223 | 214 |
| 224 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) | 215 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) |
| 225 .Times(1) | 216 .Times(1) |
| 226 .RetiresOnSaturation(); | 217 .RetiresOnSaturation(); |
| 227 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) | 218 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) |
| 228 .Times(1) | 219 .Times(1) |
| 229 .RetiresOnSaturation(); | 220 .RetiresOnSaturation(); |
| 230 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER, 0)) | 221 EXPECT_CALL(*gl_, BindFramebufferEXT(GL_FRAMEBUFFER, 0)) |
| 231 .Times(1) | 222 .Times(1) |
| 232 .RetiresOnSaturation(); | 223 .RetiresOnSaturation(); |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 SetupDefaultProgram(); | 1378 SetupDefaultProgram(); |
| 1388 } | 1379 } |
| 1389 | 1380 |
| 1390 // Include the auto-generated part of this file. We split this because it means | 1381 // Include the auto-generated part of this file. We split this because it means |
| 1391 // we can easily edit the non-auto generated parts right here in this file | 1382 // we can easily edit the non-auto generated parts right here in this file |
| 1392 // instead of having to edit some template or the code generator. | 1383 // instead of having to edit some template or the code generator. |
| 1393 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1384 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
| 1394 | 1385 |
| 1395 } // namespace gles2 | 1386 } // namespace gles2 |
| 1396 } // namespace gpu | 1387 } // namespace gpu |
| OLD | NEW |