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/test_helper.h" | 5 #include "gpu/command_buffer/service/test_helper.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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 .Times(1) | 630 .Times(1) |
631 .RetiresOnSaturation(); | 631 .RetiresOnSaturation(); |
632 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_R11F_G11F_B10F, | 632 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_R11F_G11F_B10F, |
633 width, width, 0, GL_RGB, GL_FLOAT, _)) | 633 width, width, 0, GL_RGB, GL_FLOAT, _)) |
634 .Times(1) | 634 .Times(1) |
635 .RetiresOnSaturation(); | 635 .RetiresOnSaturation(); |
636 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) | 636 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
637 .Times(1) | 637 .Times(1) |
638 .RetiresOnSaturation(); | 638 .RetiresOnSaturation(); |
639 } | 639 } |
640 | 640 if (!enable_es3 && !strstr(extensions, "GL_EXT_color_buffer_half_float") && |
641 if (!enable_es3 && !strstr(extensions, "GL_EXT_color_buffer_half_float")) { | 641 (gl_info.is_es || gl_info.IsAtLeastGL(3, 0))) { |
642 EXPECT_CALL( | 642 EXPECT_CALL( |
643 *gl, | 643 *gl, |
644 TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, GL_RED, _, _)) | 644 TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, GL_RED, _, _)) |
645 .Times(1) | 645 .Times(1) |
646 .RetiresOnSaturation(); | 646 .RetiresOnSaturation(); |
647 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) | 647 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
648 .Times(1) | 648 .Times(1) |
649 .RetiresOnSaturation(); | 649 .RetiresOnSaturation(); |
650 EXPECT_CALL( | 650 EXPECT_CALL( |
651 *gl, | 651 *gl, |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 GLenum precision, | 1234 GLenum precision, |
1235 bool static_use, | 1235 bool static_use, |
1236 const std::string& name) { | 1236 const std::string& name) { |
1237 return ConstructShaderVariable<sh::OutputVariable>( | 1237 return ConstructShaderVariable<sh::OutputVariable>( |
1238 type, array_size, precision, static_use, name); | 1238 type, array_size, precision, static_use, name); |
1239 } | 1239 } |
1240 | 1240 |
1241 } // namespace gles2 | 1241 } // namespace gles2 |
1242 } // namespace gpu | 1242 } // namespace gpu |
1243 | 1243 |
OLD | NEW |