Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Side by Side Diff: gpu/command_buffer/service/test_helper.cc

Issue 2713553005: Add GL_EXT_color_buffer_half_float support (Closed)
Patch Set: Fix compile error Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(
643 *gl,
644 TexImage2D(GL_TEXTURE_2D, 0, GL_R16F, width, width, 0, GL_RED, _, _))
645 .Times(1)
646 .RetiresOnSaturation();
647 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
648 .Times(1)
649 .RetiresOnSaturation();
650 EXPECT_CALL(
651 *gl,
652 TexImage2D(GL_TEXTURE_2D, 0, GL_RG16F, width, width, 0, GL_RG, _, _))
653 .Times(1)
654 .RetiresOnSaturation();
655 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
656 .Times(1)
657 .RetiresOnSaturation();
658 EXPECT_CALL(*gl,
659 TexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16F, width, width, 0,
660 GL_RGBA, _, _))
661 .Times(1)
662 .RetiresOnSaturation();
663 EXPECT_CALL(*gl, CheckFramebufferStatusEXT(GL_FRAMEBUFFER))
664 .Times(1)
665 .RetiresOnSaturation();
666 }
641 667
642 EXPECT_CALL(*gl, DeleteFramebuffersEXT(1, _)) 668 EXPECT_CALL(*gl, DeleteFramebuffersEXT(1, _))
643 .Times(1) 669 .Times(1)
644 .RetiresOnSaturation(); 670 .RetiresOnSaturation();
645 EXPECT_CALL(*gl, DeleteTextures(1, _)) 671 EXPECT_CALL(*gl, DeleteTextures(1, _))
646 .Times(1) 672 .Times(1)
647 .RetiresOnSaturation(); 673 .RetiresOnSaturation();
648 EXPECT_CALL(*gl, BindFramebufferEXT(GL_FRAMEBUFFER, fb_ids[0])) 674 EXPECT_CALL(*gl, BindFramebufferEXT(GL_FRAMEBUFFER, fb_ids[0]))
649 .Times(1) 675 .Times(1)
650 .RetiresOnSaturation(); 676 .RetiresOnSaturation();
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 GLenum precision, 1234 GLenum precision,
1209 bool static_use, 1235 bool static_use,
1210 const std::string& name) { 1236 const std::string& name) {
1211 return ConstructShaderVariable<sh::OutputVariable>( 1237 return ConstructShaderVariable<sh::OutputVariable>(
1212 type, array_size, precision, static_use, name); 1238 type, array_size, precision, static_use, name);
1213 } 1239 }
1214 1240
1215 } // namespace gles2 1241 } // namespace gles2
1216 } // namespace gpu 1242 } // namespace gpu
1217 1243
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/ipc/common/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698