| 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";
|
|
|