summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webpreferences.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/webpreferences.cc')
-rw-r--r--webkit/glue/webpreferences.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 116d43d..e54c199 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -155,9 +155,7 @@ void WebPreferences::Apply(WebView* web_view) const {
// Enable experimental WebGL support if requested on command line
// and support is compiled in.
- bool enable_webgl =
- WebRuntimeFeatures::isWebGLEnabled() && experimental_webgl_enabled;
- settings->setExperimentalWebGLEnabled(enable_webgl);
+ settings->setExperimentalWebGLEnabled(experimental_webgl_enabled);
// Disable GL multisampling if requested on command line.
settings->setOpenGLMultisamplingEnabled(gl_multisampling_enabled);
@@ -200,7 +198,7 @@ void WebPreferences::Apply(WebView* web_view) const {
// WebGL and accelerated 2D canvas are always gpu composited.
settings->setAcceleratedCompositingForCanvasEnabled(
- enable_webgl || accelerated_2d_canvas_enabled);
+ experimental_webgl_enabled || accelerated_2d_canvas_enabled);
// Enable memory info reporting to page if requested on the command line.
settings->setMemoryInfoEnabled(memory_info_enabled);