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

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

Issue 643373003: Add support for all blendmodes if we have GL_KHR_blend_equation_advanced. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix feature_info_unittest Created 6 years, 2 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/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "gpu/command_buffer/service/gpu_service_test.h" 10 #include "gpu/command_buffer/service/gpu_service_test.h"
(...skipping 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 Not(HasSubstr("GL_CHROMIUM_path_rendering"))); 1340 Not(HasSubstr("GL_CHROMIUM_path_rendering")));
1341 } 1341 }
1342 1342
1343 TEST_F(FeatureInfoTest, InitializeNoCHROMIUM_path_rendering2) { 1343 TEST_F(FeatureInfoTest, InitializeNoCHROMIUM_path_rendering2) {
1344 SetupInitExpectationsWithGLVersion("GL_NV_path_rendering", "", "4.3"); 1344 SetupInitExpectationsWithGLVersion("GL_NV_path_rendering", "", "4.3");
1345 EXPECT_FALSE(info_->feature_flags().chromium_path_rendering); 1345 EXPECT_FALSE(info_->feature_flags().chromium_path_rendering);
1346 EXPECT_THAT(info_->extensions(), 1346 EXPECT_THAT(info_->extensions(),
1347 Not(HasSubstr("GL_CHROMIUM_path_rendering"))); 1347 Not(HasSubstr("GL_CHROMIUM_path_rendering")));
1348 } 1348 }
1349 1349
1350 TEST_F(FeatureInfoTest, InitializeNoKHR_blend_equation_advanced) {
1351 SetupInitExpectationsWithGLVersion("", "", "4.3");
1352 EXPECT_FALSE(info_->feature_flags().blend_equation_advanced);
1353 EXPECT_THAT(info_->extensions(),
1354 Not(HasSubstr("GL_KHR_blend_equation_advanced")));
1355 }
1356
1357 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced) {
1358 SetupInitExpectations("GL_KHR_blend_equation_advanced");
1359 EXPECT_THAT(info_->extensions(), HasSubstr("GL_KHR_blend_equation_advanced"));
1360 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced);
1361 }
1362
1363 TEST_F(FeatureInfoTest, InitializeNV_blend_equations_advanced) {
1364 SetupInitExpectations("GL_NV_blend_equation_advanced");
1365 EXPECT_THAT(info_->extensions(), HasSubstr("GL_KHR_blend_equation_advanced"));
1366 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced);
1367 }
1368
1369 TEST_F(FeatureInfoTest, InitializeNoKHR_blend_equation_advanced_coherent) {
1370 SetupInitExpectationsWithGLVersion("", "", "4.3");
1371 EXPECT_FALSE(info_->feature_flags().blend_equation_advanced_coherent);
1372 EXPECT_THAT(info_->extensions(),
1373 Not(HasSubstr("GL_KHR_blend_equation_advanced_coherent")));
1374 }
1375
1376 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) {
1377 SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent");
1378 EXPECT_THAT(info_->extensions(),
1379 HasSubstr("GL_KHR_blend_equation_advanced_coherent"));
1380 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced);
1381 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent);
1382 }
1383
1350 } // namespace gles2 1384 } // namespace gles2
1351 } // namespace gpu 1385 } // namespace gpu
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