summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler_settings.h
diff options
context:
space:
mode:
authormithro <mithro@mithis.com>2014-11-04 21:30:46 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-05 05:31:04 +0000
commit4df3c4366015739a7c6b6c1539a8d7c9198e38ef (patch)
tree2cafaeba6a3c7792fb3e893228d674d0910b6c93 /cc/scheduler/scheduler_settings.h
parentab9f8645f966c4d01a8009ac6a67a7c7f082e273 (diff)
downloadchromium_src-4df3c4366015739a7c6b6c1539a8d7c9198e38ef.zip
chromium_src-4df3c4366015739a7c6b6c1539a8d7c9198e38ef.tar.gz
chromium_src-4df3c4366015739a7c6b6c1539a8d7c9198e38ef.tar.bz2
Moving background animation ticking from LayerTreeHostImpl into the Scheduler.
Background ticking currently happens in the LayerTreeHostImpl, this makes it very hard to preserve the monotonicity guarantee needed by frame times. http://crrev.com/267783004 set up the scheduler to become the source of background ticks and this CL makes use of that functionality. BUG=345459 Review URL: https://codereview.chromium.org/595973002 Cr-Commit-Position: refs/heads/master@{#302757}
Diffstat (limited to 'cc/scheduler/scheduler_settings.h')
-rw-r--r--cc/scheduler/scheduler_settings.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/scheduler/scheduler_settings.h b/cc/scheduler/scheduler_settings.h
index 8607991..561d265 100644
--- a/cc/scheduler/scheduler_settings.h
+++ b/cc/scheduler/scheduler_settings.h
@@ -6,6 +6,7 @@
#define CC_SCHEDULER_SCHEDULER_SETTINGS_H_
#include "base/memory/ref_counted.h"
+#include "base/time/time.h"
#include "base/values.h"
#include "cc/base/cc_export.h"
@@ -33,6 +34,8 @@ class CC_EXPORT SchedulerSettings {
bool throttle_frame_production;
bool disable_hi_res_timer_tasks_on_battery;
+ base::TimeDelta background_frame_interval;
+
scoped_refptr<base::debug::ConvertableToTraceFormat> AsValue() const;
};