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

Unified Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 2444813002: Remove unsafe mode to enable es3 api by default for WebGL2 and ES3 context (Closed)
Patch Set: fix a bug Created 4 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/feature_info_unittest.cc
diff --git a/gpu/command_buffer/service/feature_info_unittest.cc b/gpu/command_buffer/service/feature_info_unittest.cc
index 49b8d197da6be1566db60ec19e84ccef8f6d98c3..930d04b671b1e446b57f4d752fa6d40a52dc8a94 100644
--- a/gpu/command_buffer/service/feature_info_unittest.cc
+++ b/gpu/command_buffer/service/feature_info_unittest.cc
@@ -97,6 +97,7 @@ class FeatureInfoTest
TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
gl_.get(), extensions, renderer, version, GetContextType());
info_ = new FeatureInfo();
+ info_->SetES3APIsSwitch(false);
info_->Initialize(GetContextType(), DisallowedFeatures());
}
@@ -109,6 +110,7 @@ class FeatureInfoTest
TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
gl_.get(), extensions, renderer, version, GetContextType());
info_ = new FeatureInfo();
+ info_->SetES3APIsSwitch(false);
info_->Initialize(GetContextType(), disallowed_features);
}
@@ -122,6 +124,7 @@ class FeatureInfoTest
gl_.get(), extensions, renderer, version, GetContextType());
GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
info_ = new FeatureInfo(command_line, gpu_driver_bug_workaround);
+ info_->SetES3APIsSwitch(false);
info_->Initialize(GetContextType(), DisallowedFeatures());
}
@@ -139,6 +142,7 @@ class FeatureInfoTest
gl_.get(), extensions, "", "", GetContextType());
GpuDriverBugWorkarounds gpu_driver_bug_workaround(&command_line);
info_ = new FeatureInfo(command_line, gpu_driver_bug_workaround);
+ info_->SetES3APIsSwitch(false);
info_->Initialize(GetContextType(), DisallowedFeatures());
}
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/framebuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698