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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 .Times(1) | 386 .Times(1) |
387 .RetiresOnSaturation(); | 387 .RetiresOnSaturation(); |
388 } | 388 } |
389 | 389 |
390 if (group_->feature_info()->gl_version_info().IsAtLeastGL(3, 2)) { | 390 if (group_->feature_info()->gl_version_info().IsAtLeastGL(3, 2)) { |
391 EXPECT_CALL(*gl_, Enable(GL_TEXTURE_CUBE_MAP_SEAMLESS)) | 391 EXPECT_CALL(*gl_, Enable(GL_TEXTURE_CUBE_MAP_SEAMLESS)) |
392 .Times(1) | 392 .Times(1) |
393 .RetiresOnSaturation(); | 393 .RetiresOnSaturation(); |
394 } | 394 } |
395 | 395 |
| 396 if (group_->feature_info()->feature_flags().desktop_srgb_support) { |
| 397 EXPECT_CALL(*gl_, Disable(GL_FRAMEBUFFER_SRGB)) |
| 398 .Times(1) |
| 399 .RetiresOnSaturation(); |
| 400 } |
| 401 |
396 if (group_->feature_info()->gl_version_info().is_es) { | 402 if (group_->feature_info()->gl_version_info().is_es) { |
397 EXPECT_CALL( | 403 EXPECT_CALL( |
398 *gl_, GetShaderPrecisionFormat(GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, _, _)) | 404 *gl_, GetShaderPrecisionFormat(GL_FRAGMENT_SHADER, GL_HIGH_FLOAT, _, _)) |
399 .RetiresOnSaturation(); | 405 .RetiresOnSaturation(); |
400 } | 406 } |
401 | 407 |
402 static GLint max_viewport_dims[] = { | 408 static GLint max_viewport_dims[] = { |
403 kMaxViewportWidth, | 409 kMaxViewportWidth, |
404 kMaxViewportHeight | 410 kMaxViewportHeight |
405 }; | 411 }; |
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2114 SetupDefaultProgram(); | 2120 SetupDefaultProgram(); |
2115 } | 2121 } |
2116 | 2122 |
2117 // Include the auto-generated part of this file. We split this because it means | 2123 // Include the auto-generated part of this file. We split this because it means |
2118 // we can easily edit the non-auto generated parts right here in this file | 2124 // we can easily edit the non-auto generated parts right here in this file |
2119 // instead of having to edit some template or the code generator. | 2125 // instead of having to edit some template or the code generator. |
2120 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" | 2126 #include "gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h" |
2121 | 2127 |
2122 } // namespace gles2 | 2128 } // namespace gles2 |
2123 } // namespace gpu | 2129 } // namespace gpu |
OLD | NEW |