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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 | 331 |
332 static GLint max_viewport_dims[] = { | 332 static GLint max_viewport_dims[] = { |
333 kMaxViewportWidth, | 333 kMaxViewportWidth, |
334 kMaxViewportHeight | 334 kMaxViewportHeight |
335 }; | 335 }; |
336 EXPECT_CALL(*gl_, GetIntegerv(GL_MAX_VIEWPORT_DIMS, _)) | 336 EXPECT_CALL(*gl_, GetIntegerv(GL_MAX_VIEWPORT_DIMS, _)) |
337 .WillOnce(SetArrayArgument<1>( | 337 .WillOnce(SetArrayArgument<1>( |
338 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) | 338 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) |
339 .RetiresOnSaturation(); | 339 .RetiresOnSaturation(); |
340 | 340 |
341 SetupInitCapabilitiesExpectations(); | 341 SetupInitCapabilitiesExpectations(group_->feature_info()->IsES3Capable()); |
342 SetupInitStateExpectations(); | 342 SetupInitStateExpectations(); |
343 | 343 |
344 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) | 344 EXPECT_CALL(*gl_, ActiveTexture(GL_TEXTURE0)) |
345 .Times(1) | 345 .Times(1) |
346 .RetiresOnSaturation(); | 346 .RetiresOnSaturation(); |
347 | 347 |
348 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) | 348 EXPECT_CALL(*gl_, BindBuffer(GL_ARRAY_BUFFER, 0)) |
349 .Times(1) | 349 .Times(1) |
350 .RetiresOnSaturation(); | 350 .RetiresOnSaturation(); |
351 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) | 351 EXPECT_CALL(*gl_, BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0)) |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 SetupDefaultProgram(); | 1781 SetupDefaultProgram(); |
1782 } | 1782 } |
1783 | 1783 |
1784 // Include the auto-generated part of this file. We split this because it means | 1784 // Include the auto-generated part of this file. We split this because it means |
1785 // we can easily edit the non-auto generated parts right here in this file | 1785 // we can easily edit the non-auto generated parts right here in this file |
1786 // instead of having to edit some template or the code generator. | 1786 // instead of having to edit some template or the code generator. |
1787 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 1787 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
1788 | 1788 |
1789 } // namespace gles2 | 1789 } // namespace gles2 |
1790 } // namespace gpu | 1790 } // namespace gpu |
OLD | NEW |