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

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: add missing test 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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 Not(HasSubstr("GL_CHROMIUM_path_rendering"))); 1285 Not(HasSubstr("GL_CHROMIUM_path_rendering")));
1286 } 1286 }
1287 1287
1288 TEST_F(FeatureInfoTest, InitializeNoCHROMIUM_path_rendering2) { 1288 TEST_F(FeatureInfoTest, InitializeNoCHROMIUM_path_rendering2) {
1289 SetupInitExpectationsWithGLVersion("GL_NV_path_rendering", "", "4.3"); 1289 SetupInitExpectationsWithGLVersion("GL_NV_path_rendering", "", "4.3");
1290 EXPECT_FALSE(info_->feature_flags().chromium_path_rendering); 1290 EXPECT_FALSE(info_->feature_flags().chromium_path_rendering);
1291 EXPECT_THAT(info_->extensions(), 1291 EXPECT_THAT(info_->extensions(),
1292 Not(HasSubstr("GL_CHROMIUM_path_rendering"))); 1292 Not(HasSubstr("GL_CHROMIUM_path_rendering")));
1293 } 1293 }
1294 1294
1295 TEST_F(FeatureInfoTest, InitializeNV_blend_equations_advanced) {
1296 SetupInitExpectations("GL_NV_blend_equation_advanced");
1297 EXPECT_THAT(info_->extensions(), HasSubstr("GL_NV_blend_equation_advanced"));
1298 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced);
1299 }
1300
1301
1295 } // namespace gles2 1302 } // namespace gles2
1296 } // namespace gpu 1303 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698