Chromium Code Reviews| Index: cc/scheduler/scheduler.cc |
| diff --git a/cc/scheduler/scheduler.cc b/cc/scheduler/scheduler.cc |
| index 70d726d42bc971026ecd426e82c29e4697fd744e..b86291c3e77f072173b2258109a80077bc0fc66e 100644 |
| --- a/cc/scheduler/scheduler.cc |
| +++ b/cc/scheduler/scheduler.cc |
| @@ -299,10 +299,14 @@ base::TimeTicks Scheduler::AnticipatedDrawTime() const { |
| return timebase + (begin_impl_frame_args_.interval * intervals); |
| } |
| -base::TimeTicks Scheduler::LastBeginImplFrameTime() { |
| +base::TimeTicks Scheduler::LastBeginImplFrameTime() const { |
| return begin_impl_frame_args_.frame_time; |
| } |
| +base::TimeTicks Scheduler::NextBeginImplFrameTimeIfRequested() const { |
|
mithro-old
2015/03/11 04:01:32
Why do you need this method?
vmpstr
2015/03/16 18:36:43
This returns the next predicted raf time which is
mithro-old
2015/03/20 02:17:53
Can you link me to why you need this? I was pretty
vmpstr
2015/03/20 18:47:25
The spec I'm working off is here: http://w3c.githu
mithro-old
2015/03/23 00:15:07
Reading the spec, my understanding is that you sho
|
| + return begin_impl_frame_args_.frame_time + begin_impl_frame_args_.interval; |
| +} |
| + |
| void Scheduler::SetupNextBeginFrameIfNeeded() { |
| if (!task_runner_.get()) |
| return; |