summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler_settings.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 04:37:35 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-09 04:37:35 +0000
commit545dd721cf28954ed59981d36b662e503b23c97b (patch)
tree264465bebfef80f82cb09517b8947fc20b7a8c53 /cc/scheduler/scheduler_settings.cc
parent16dc4245870d40d56dbcfbc05ad2c0cc1a1001e0 (diff)
downloadchromium_src-545dd721cf28954ed59981d36b662e503b23c97b.zip
chromium_src-545dd721cf28954ed59981d36b662e503b23c97b.tar.gz
chromium_src-545dd721cf28954ed59981d36b662e503b23c97b.tar.bz2
cc: Prevent checkerboarded animations from timing out during tests.
During tests that verify behaviour with checkerboarding, we need preductable behaviour. Currently if the test takes too long and the compositor thread ticks too many times, the checkerboarded animation will time out and animate+draw. This is unpredictable flaky behaviour for the tests. So add a setting to disable this timeout-and-draw behaviour in the scheduler. R=jamesr BUG=228998 Review URL: https://chromiumcodereview.appspot.com/13577005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler/scheduler_settings.cc')
-rw-r--r--cc/scheduler/scheduler_settings.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/scheduler/scheduler_settings.cc b/cc/scheduler/scheduler_settings.cc
index 7c37276..29c525b 100644
--- a/cc/scheduler/scheduler_settings.cc
+++ b/cc/scheduler/scheduler_settings.cc
@@ -6,7 +6,9 @@
namespace cc {
-SchedulerSettings::SchedulerSettings() : impl_side_painting(false) {}
+SchedulerSettings::SchedulerSettings()
+ : impl_side_painting(false),
+ timeout_and_draw_when_animation_checkerboards(true) {}
SchedulerSettings::~SchedulerSettings() {}