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

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

Issue 7538008: Delete copy_texture_to_parent_texture from GPU command buffer code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "gpu/command_buffer/common/gl_mock.h" 8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "gpu/command_buffer/service/test_helper.h" 9 #include "gpu/command_buffer/service/test_helper.h"
10 #include "gpu/command_buffer/service/texture_manager.h" 10 #include "gpu/command_buffer/service/texture_manager.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 EXPECT_FALSE(info_.feature_flags().enable_texture_float_linear); 60 EXPECT_FALSE(info_.feature_flags().enable_texture_float_linear);
61 EXPECT_FALSE(info_.feature_flags().enable_texture_half_float_linear); 61 EXPECT_FALSE(info_.feature_flags().enable_texture_half_float_linear);
62 EXPECT_FALSE(info_.feature_flags().chromium_webglsl); 62 EXPECT_FALSE(info_.feature_flags().chromium_webglsl);
63 EXPECT_FALSE(info_.feature_flags().oes_egl_image_external); 63 EXPECT_FALSE(info_.feature_flags().oes_egl_image_external);
64 } 64 }
65 65
66 TEST_F(FeatureInfoTest, InitializeNoExtensions) { 66 TEST_F(FeatureInfoTest, InitializeNoExtensions) {
67 SetupInitExpectations(""); 67 SetupInitExpectations("");
68 info_.Initialize(NULL); 68 info_.Initialize(NULL);
69 // Check default extensions are there 69 // Check default extensions are there
70 EXPECT_THAT(info_.extensions(),
71 HasSubstr("GL_CHROMIUM_copy_texture_to_parent_texture"));
72 EXPECT_THAT(info_.extensions(), HasSubstr("GL_CHROMIUM_resource_safe")); 70 EXPECT_THAT(info_.extensions(), HasSubstr("GL_CHROMIUM_resource_safe"));
73 EXPECT_THAT(info_.extensions(), HasSubstr("GL_CHROMIUM_strict_attribs")); 71 EXPECT_THAT(info_.extensions(), HasSubstr("GL_CHROMIUM_strict_attribs"));
74 72
75 // Check a couple of random extensions that should not be there. 73 // Check a couple of random extensions that should not be there.
76 EXPECT_THAT(info_.extensions(), Not(HasSubstr("GL_CHROMIUM_webglsl"))); 74 EXPECT_THAT(info_.extensions(), Not(HasSubstr("GL_CHROMIUM_webglsl")));
77 EXPECT_THAT(info_.extensions(), Not(HasSubstr("GL_OES_texture_npot"))); 75 EXPECT_THAT(info_.extensions(), Not(HasSubstr("GL_OES_texture_npot")));
78 EXPECT_THAT(info_.extensions(), 76 EXPECT_THAT(info_.extensions(),
79 Not(HasSubstr("GL_EXT_texture_compression_dxt1"))); 77 Not(HasSubstr("GL_EXT_texture_compression_dxt1")));
80 EXPECT_THAT(info_.extensions(), 78 EXPECT_THAT(info_.extensions(),
81 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3"))); 79 Not(HasSubstr("GL_CHROMIUM_texture_compression_dxt3")));
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES)); 426 GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES));
429 EXPECT_TRUE(info_.validators()->g_l_state.IsValid( 427 EXPECT_TRUE(info_.validators()->g_l_state.IsValid(
430 GL_TEXTURE_BINDING_EXTERNAL_OES)); 428 GL_TEXTURE_BINDING_EXTERNAL_OES));
431 } 429 }
432 430
433 } // namespace gles2 431 } // namespace gles2
434 } // namespace gpu 432 } // namespace gpu
435 433
436 434
437 435
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698