| Index: cc/settings.cc
|
| diff --git a/cc/settings.cc b/cc/settings.cc
|
| index 9a33af1c5c5fe58bc0d7a48ff14ffa06f77f3a21..98a877ed253fb103e4370ede31c1949b76753559 100644
|
| --- a/cc/settings.cc
|
| +++ b/cc/settings.cc
|
| @@ -15,6 +15,7 @@ static bool s_acceleratedAnimationEnabled = false;
|
| static bool s_pageScalePinchZoomEnabled = false;
|
| static bool s_jankInsteadOfCheckerboard = false;
|
| static bool s_backgroundColorInsteadOfCheckerboard = false;
|
| +static bool s_traceOverdraw = false;
|
|
|
| void reset()
|
| {
|
| @@ -26,6 +27,7 @@ void reset()
|
| s_pageScalePinchZoomEnabled = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnablePinchInCompositor);
|
| s_jankInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kJankInsteadOfCheckerboard);
|
| s_backgroundColorInsteadOfCheckerboard = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kBackgroundColorInsteadOfCheckerboard);
|
| + s_traceOverdraw = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kTraceOverdraw);
|
| }
|
|
|
| }
|
| @@ -74,6 +76,13 @@ bool Settings::backgroundColorInsteadOfCheckerboard()
|
| return s_backgroundColorInsteadOfCheckerboard;
|
| }
|
|
|
| +bool Settings::traceOverdraw()
|
| +{
|
| + if (!s_settingsInitialized)
|
| + reset();
|
| + return s_traceOverdraw;
|
| +}
|
| +
|
| void Settings::resetForTest()
|
| {
|
| reset();
|
|
|