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

Unified Diff: chrome/browser/gpu_util.cc

Issue 10546113: Added a command line flag that disables force-compositing-mode and modified the about:flags entry t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/browser/about_flags.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gpu_util.cc
===================================================================
--- chrome/browser/gpu_util.cc (revision 141860)
+++ chrome/browser/gpu_util.cc (working copy)
@@ -192,6 +192,12 @@
return;
#endif
+ // Don't activate the field trial if force-compositing-mode has been
+ // explicitly disabled from the command line.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableForceCompositingMode))
+ return;
+
const base::FieldTrial::Probability kDivisor = 100;
scoped_refptr<base::FieldTrial> trial(
base::FieldTrialList::FactoryGetFieldTrial(
@@ -369,7 +375,9 @@
!command_line.HasSwitch(switches::kDisableThreadedCompositing);
if (kGpuFeatureInfo[i].name == "compositing") {
bool force_compositing =
- command_line.HasSwitch(switches::kForceCompositingMode) ||
+ (command_line.HasSwitch(switches::kForceCompositingMode) &&
+ !command_line.HasSwitch(
+ switches::kDisableForceCompositingMode)) ||
InForceCompositingModeTrial();
if (force_compositing)
status += "_force";
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698