diff options
author | sunnyps <sunnyps@chromium.org> | 2016-02-02 12:53:54 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-02 20:54:44 +0000 |
commit | 6ab38e4f06caa13bbcdfaa652109d114576c1cbe (patch) | |
tree | f4598dab99df0df2f41b317c85e15129e91d236b /cc/scheduler/delay_based_time_source.h | |
parent | f6ce6c613ba8ea75fe56125dc67bac6f22454738 (diff) | |
download | chromium_src-6ab38e4f06caa13bbcdfaa652109d114576c1cbe.zip chromium_src-6ab38e4f06caa13bbcdfaa652109d114576c1cbe.tar.gz chromium_src-6ab38e4f06caa13bbcdfaa652109d114576c1cbe.tar.bz2 |
cc: Add support for multiple observers to BeginFrameSource.
Multiple observers can be added to BeginFrameSource. The
SetNeedsBeginFrames method was removed because it doesn't make sense
with multiple observers. BeginFrameSources are expected to produce
BeginFrames as long as there are registered observers. There are helper
methods in BeginFrameSourceBase to make this easy.
Changes had to be made to DelayBasedTimeSource as its MISSED BeginFrame
logic was moved to SyntheticBFS for dealing with multiple observers.
BUG=580352
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1611633004
Cr-Commit-Position: refs/heads/master@{#373031}
Diffstat (limited to 'cc/scheduler/delay_based_time_source.h')
-rw-r--r-- | cc/scheduler/delay_based_time_source.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cc/scheduler/delay_based_time_source.h b/cc/scheduler/delay_based_time_source.h index 7f97a91..1300661 100644 --- a/cc/scheduler/delay_based_time_source.h +++ b/cc/scheduler/delay_based_time_source.h @@ -49,8 +49,7 @@ class CC_EXPORT DelayBasedTimeSource { base::TimeDelta Interval() const; - // Returns the time for the last missed tick. - base::TimeTicks SetActive(bool active); + void SetActive(bool active); bool Active() const; // Get the last and next tick times. NextTickTime() returns null when @@ -69,8 +68,6 @@ class CC_EXPORT DelayBasedTimeSource { virtual std::string TypeString() const; private: - base::TimeTicks NextTickTarget(base::TimeTicks now) const; - void PostNextTickTask(base::TimeTicks now); void ResetTickTask(base::TimeTicks now); |