From d5bffb5125da23718e8098441b4a4269a5cf2f33 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 30 Jan 2018 17:23:41 +0100 Subject: Basic adaptations for 64-based MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I11e2da206e4e59872a38c178f57a5879c1bbf229 Reviewed-by: Michael BrĂ¼ning --- src/core/web_engine_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/web_engine_settings.cpp') diff --git a/src/core/web_engine_settings.cpp b/src/core/web_engine_settings.cpp index d16c2bd15..4cd4b6452 100644 --- a/src/core/web_engine_settings.cpp +++ b/src/core/web_engine_settings.cpp @@ -276,10 +276,10 @@ void WebEngineSettings::initDefaults() QtWebEngineCore::WebEngineContext::current(); base::CommandLine* commandLine = base::CommandLine::ForCurrentProcess(); bool smoothScrolling = commandLine->HasSwitch(switches::kEnableSmoothScrolling); - bool webGL = content::GpuProcessHost::gpu_enabled() && + bool webGL = !commandLine->HasSwitch(switches::kDisable3DAPIs) && !commandLine->HasSwitch(switches::kDisableWebGL); - bool accelerated2dCanvas = content::GpuProcessHost::gpu_enabled() && + bool accelerated2dCanvas = !commandLine->HasSwitch(switches::kDisableAccelerated2dCanvas); bool allowRunningInsecureContent = commandLine->HasSwitch(switches::kAllowRunningInsecureContent); s_defaultAttributes.insert(ScrollAnimatorEnabled, smoothScrolling); -- cgit v1.2.3