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

Unified Diff: content/child/runtime_features.cc

Issue 2377883002: Expose --disable-gpu-compositing browser arg to Blink (Closed)
Patch Set: rebse after Blink Format 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/runtime_features.cc
diff --git a/content/child/runtime_features.cc b/content/child/runtime_features.cc
index 487fc375e170d4022cd337d57c1fdd0e932dcaaa..5eb2ea8e94fff4d2c10ed4761195885859966ba4 100644
--- a/content/child/runtime_features.cc
+++ b/content/child/runtime_features.cc
@@ -115,6 +115,12 @@ void SetRuntimeFeaturesDefaultsAndUpdateFromArgs(
if (command_line.HasSwitch(switches::kForceDisplayList2dCanvas))
WebRuntimeFeatures::forceDisplayList2dCanvas(true);
+ if (command_line.HasSwitch(switches::kDisableGpuCompositing) ||
+ command_line.HasSwitch(switches::kDisableGpu))
danakj 2016/10/04 21:41:27 Sorry just noticed this but you don't need to chec
+ WebRuntimeFeatures::enableGpuCompositing(false);
+ else
+ WebRuntimeFeatures::enableGpuCompositing(true);
+
if (command_line.HasSwitch(
switches::kEnableCanvas2dDynamicRenderingModeSwitching))
WebRuntimeFeatures::enableCanvas2dDynamicRenderingModeSwitching(true);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698