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