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

Unified Diff: content/shell/shell_main_delegate.cc

Issue 13983014: [CLOSED] Cleaning up the plethora of switches for GPU vs software vs SwiftShader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « content/renderer/render_widget.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_main_delegate.cc
diff --git a/content/shell/shell_main_delegate.cc b/content/shell/shell_main_delegate.cc
index 9689c0da52d3264669f122ca7117fd3f4122c104..a4fba4e79bc9df6d7fd6dab868e4c5a66bb34dde 100644
--- a/content/shell/shell_main_delegate.cc
+++ b/content/shell/shell_main_delegate.cc
@@ -106,16 +106,18 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
if (command_line.HasSwitch(switches::kDumpRenderTree)) {
command_line.AppendSwitch(switches::kProcessPerTab);
command_line.AppendSwitch(switches::kAllowFileAccessFromFiles);
- command_line.AppendSwitchASCII(
- switches::kUseGL, gfx::kGLImplementationOSMesaName);
- SetAllowOSMesaImageTransportForTesting();
command_line.AppendSwitch(switches::kSkipGpuDataLoading);
command_line.AppendSwitch(switches::kEnableExperimentalWebKitFeatures);
- command_line.AppendSwitch(switches::kEnableCssShaders);
command_line.AppendSwitchASCII(switches::kTouchEvents,
switches::kTouchEventsEnabled);
- if (command_line.HasSwitch(switches::kEnableSoftwareCompositing))
- command_line.AppendSwitch(switches::kEnableSoftwareCompositingGLAdapter);
+ if (command_line.HasSwitch(switches::kEnableSoftwareCompositing)) {
+ command_line.AppendSwitch(switches::kDisableGpu);
+ } else {
+ SetAllowOSMesaImageTransportForTesting();
+ command_line.AppendSwitchASCII(
+ switches::kUseGL, gfx::kGLImplementationOSMesaName);
+ command_line.AppendSwitch(switches::kEnableCssShaders);
+ }
net::CookieMonster::EnableFileScheme();
if (!WebKitTestPlatformInitialize()) {
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698