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

Unified Diff: content/common/compositor_util.cc

Issue 10991032: Revert 158707 - Enable by default: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « chrome/test/gpu/gpu_feature_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/compositor_util.cc
===================================================================
--- content/common/compositor_util.cc (revision 158710)
+++ content/common/compositor_util.cc (working copy)
@@ -18,13 +18,8 @@
#endif
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
-
- // Command line switches take precedence over field trials.
- if (command_line.HasSwitch(switches::kDisableForceCompositingMode) ||
- command_line.HasSwitch(switches::kDisableThreadedCompositing))
- return false;
-
- if (command_line.HasSwitch(switches::kEnableThreadedCompositing))
+ if (command_line.HasSwitch(switches::kEnableThreadedCompositing) &&
+ !command_line.HasSwitch(switches::kDisableThreadedCompositing))
return true;
base::FieldTrial* trial =
@@ -41,12 +36,8 @@
#endif
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
-
- // Command line switches take precedence over field trials.
- if (command_line.HasSwitch(switches::kDisableForceCompositingMode))
- return false;
-
- if (command_line.HasSwitch(switches::kForceCompositingMode))
+ if (command_line.HasSwitch(switches::kForceCompositingMode) &&
+ !command_line.HasSwitch(switches::kDisableForceCompositingMode))
return true;
base::FieldTrial* trial =
« no previous file with comments | « chrome/test/gpu/gpu_feature_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698