| 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 641 if (!enable_es3 && !strstr(extensions, "GL_EXT_color_buffer_half_float")) { |
| 642 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, |
| 643 GL_RED, GL_FLOAT, _)) |
| 644 .Times(1) |
| 645 .RetiresOnSaturation(); |
| 646 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
| 647 .Times(1) |
| 648 .RetiresOnSaturation(); |
| 649 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RG16F, width, width, 0, |
| 650 GL_RG, GL_FLOAT, _)) |
| 651 .Times(1) |
| 652 .RetiresOnSaturation(); |
| 653 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
| 654 .Times(1) |
| 655 .RetiresOnSaturation(); |
| 656 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RGB16F, width, width, 0, |
| 657 GL_RGB, GL_FLOAT, _)) |
| 658 .Times(1) |
| 659 .RetiresOnSaturation(); |
| 660 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
| 661 .Times(1) |
| 662 .RetiresOnSaturation(); |
| 663 EXPECT_CALL(*gl, TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F, width, width, 0, |
| 664 GL_RGBA, GL_FLOAT, _)) |
| 665 .Times(1) |
| 666 .RetiresOnSaturation(); |
| 667 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER)) |
| 668 .Times(1) |
| 669 .RetiresOnSaturation(); |
| 670 } |
| 641 | 671 |
| 642 EXPECT_CALL(*gl, DeleteFramebuffersEXT(1, _)) | 672 EXPECT_CALL(*gl, DeleteFramebuffersEXT(1, _)) |
| 643 .Times(1) | 673 .Times(1) |
| 644 .RetiresOnSaturation(); | 674 .RetiresOnSaturation(); |
| 645 EXPECT_CALL(*gl, DeleteTextures(1, _)) | 675 EXPECT_CALL(*gl, DeleteTextures(1, _)) |
| 646 .Times(1) | 676 .Times(1) |
| 647 .RetiresOnSaturation(); | 677 .RetiresOnSaturation(); |
| 648 EXPECT_CALL(*gl, BindFramebufferEXT(GL_FRAMEBUFFER, fb_ids[0])) | 678 EXPECT_CALL(*gl, BindFramebufferEXT(GL_FRAMEBUFFER, fb_ids[0])) |
| 649 .Times(1) | 679 .Times(1) |
| 650 .RetiresOnSaturation(); | 680 .RetiresOnSaturation(); |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 GLenum precision, | 1238 GLenum precision, |
| 1209 bool static_use, | 1239 bool static_use, |
| 1210 const std::string& name) { | 1240 const std::string& name) { |
| 1211 return ConstructShaderVariable<sh::OutputVariable>( | 1241 return ConstructShaderVariable<sh::OutputVariable>( |
| 1212 type, array_size, precision, static_use, name); | 1242 type, array_size, precision, static_use, name); |
| 1213 } | 1243 } |
| 1214 | 1244 |
| 1215 } // namespace gles2 | 1245 } // namespace gles2 |
| 1216 } // namespace gpu | 1246 } // namespace gpu |
| 1217 | 1247 |
| OLD | NEW |