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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 if (!group_->feature_info()->gl_version_info().BehavesLikeGLES()) { | 344 if (!group_->feature_info()->gl_version_info().BehavesLikeGLES()) { |
345 EXPECT_CALL(*gl_, Enable(GL_VERTEX_PROGRAM_POINT_SIZE)) | 345 EXPECT_CALL(*gl_, Enable(GL_VERTEX_PROGRAM_POINT_SIZE)) |
346 .Times(1) | 346 .Times(1) |
347 .RetiresOnSaturation(); | 347 .RetiresOnSaturation(); |
348 | 348 |
349 EXPECT_CALL(*gl_, Enable(GL_POINT_SPRITE)) | 349 EXPECT_CALL(*gl_, Enable(GL_POINT_SPRITE)) |
350 .Times(1) | 350 .Times(1) |
351 .RetiresOnSaturation(); | 351 .RetiresOnSaturation(); |
352 } | 352 } |
353 | 353 |
| 354 if (group_->feature_info()->gl_version_info().IsAtLeastGL(3, 2)) { |
| 355 EXPECT_CALL(*gl_, Enable(GL_TEXTURE_CUBE_MAP_SEAMLESS)) |
| 356 .Times(1) |
| 357 .RetiresOnSaturation(); |
| 358 } |
| 359 |
354 static GLint max_viewport_dims[] = { | 360 static GLint max_viewport_dims[] = { |
355 kMaxViewportWidth, | 361 kMaxViewportWidth, |
356 kMaxViewportHeight | 362 kMaxViewportHeight |
357 }; | 363 }; |
358 EXPECT_CALL(*gl_, GetIntegerv(GL_MAX_VIEWPORT_DIMS, _)) | 364 EXPECT_CALL(*gl_, GetIntegerv(GL_MAX_VIEWPORT_DIMS, _)) |
359 .WillOnce(SetArrayArgument<1>( | 365 .WillOnce(SetArrayArgument<1>( |
360 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) | 366 max_viewport_dims, max_viewport_dims + arraysize(max_viewport_dims))) |
361 .RetiresOnSaturation(); | 367 .RetiresOnSaturation(); |
362 | 368 |
363 static GLfloat line_width_range[] = { 1.0f, 2.0f }; | 369 static GLfloat line_width_range[] = { 1.0f, 2.0f }; |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2026 SetupDefaultProgram(); | 2032 SetupDefaultProgram(); |
2027 } | 2033 } |
2028 | 2034 |
2029 // Include the auto-generated part of this file. We split this because it means | 2035 // Include the auto-generated part of this file. We split this because it means |
2030 // we can easily edit the non-auto generated parts right here in this file | 2036 // we can easily edit the non-auto generated parts right here in this file |
2031 // instead of having to edit some template or the code generator. | 2037 // instead of having to edit some template or the code generator. |
2032 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2038 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2033 | 2039 |
2034 } // namespace gles2 | 2040 } // namespace gles2 |
2035 } // namespace gpu | 2041 } // namespace gpu |
OLD | NEW |