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

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

Issue 1626363002: command_buffer: Enable gl path rendering by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info.cc
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index fd237c32013bfbac0d0621e0d7cee849319f37b0..73fb0eab56f3fa92067fc43f413084c80d019646 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -223,9 +223,6 @@ void FeatureInfo::InitializeBasicState(const base::CommandLine* command_line) {
enable_unsafe_es3_apis_switch_ =
command_line->HasSwitch(switches::kEnableUnsafeES3APIs);
- enable_gl_path_rendering_switch_ =
- command_line->HasSwitch(switches::kEnableGLPathRendering);
-
// The shader translator is needed to translate from WebGL-conformant GLES SL
// to normal GLES SL, enforce WebGL conformance, translate from GLES SL 1.0 to
// target context GLSL, implement emulation of OpenGL ES features on OpenGL,
@@ -1245,15 +1242,13 @@ void FeatureInfo::InitializeFeatures() {
}
}
- if (enable_gl_path_rendering_switch_ &&
- extensions.Contains("GL_NV_framebuffer_mixed_samples")) {
+ if (extensions.Contains("GL_NV_framebuffer_mixed_samples")) {
AddExtensionString("GL_CHROMIUM_framebuffer_mixed_samples");
feature_flags_.chromium_framebuffer_mixed_samples = true;
validators_.g_l_state.AddValue(GL_COVERAGE_MODULATION_CHROMIUM);
}
- if (enable_gl_path_rendering_switch_ &&
- extensions.Contains("GL_NV_path_rendering")) {
+ if (extensions.Contains("GL_NV_path_rendering")) {
bool has_dsa = gl_version_info_->IsAtLeastGL(4, 5) ||
extensions.Contains("GL_EXT_direct_state_access");
bool has_piq = gl_version_info_->IsAtLeastGL(4, 3) ||
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/feature_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698