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 c4a1ee385b8523436534a5f63b506e17a9789239..849f2ef622d5a0dc2409ea9d8e845d44cd236a5e 100644 |
--- a/gpu/command_buffer/service/feature_info.cc |
+++ b/gpu/command_buffer/service/feature_info.cc |
@@ -225,6 +225,9 @@ |
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, |
@@ -1178,7 +1181,8 @@ |
} |
} |
- if (!workarounds_.disable_gl_path_rendering && |
+ if (enable_gl_path_rendering_switch_ && |
+ !workarounds_.disable_gl_path_rendering && |
extensions.Contains("GL_NV_path_rendering")) { |
bool has_dsa = gl_version_info_->IsAtLeastGL(4, 5) || |
extensions.Contains("GL_EXT_direct_state_access"); |
@@ -1196,7 +1200,8 @@ |
} |
} |
- if (!workarounds_.disable_gl_path_rendering && |
+ if (enable_gl_path_rendering_switch_ && |
+ !workarounds_.disable_gl_path_rendering && |
extensions.Contains("GL_NV_framebuffer_mixed_samples")) { |
AddExtensionString("GL_CHROMIUM_framebuffer_mixed_samples"); |
feature_flags_.chromium_framebuffer_mixed_samples = true; |