| Index: cc/test/scheduler_test_common.h
|
| diff --git a/cc/test/scheduler_test_common.h b/cc/test/scheduler_test_common.h
|
| index c1a8c1023599f25f4fec18593daa43325453d94a..8ebb9a411dcc17ea7e11225e5d1f348f0adc2080 100644
|
| --- a/cc/test/scheduler_test_common.h
|
| +++ b/cc/test/scheduler_test_common.h
|
| @@ -166,6 +166,8 @@ class FakeCompositorTimingHistory : public CompositorTimingHistory {
|
| static scoped_ptr<FakeCompositorTimingHistory> Create();
|
| ~FakeCompositorTimingHistory() override;
|
|
|
| + void SetAllEstimatesTo(base::TimeDelta duration);
|
| +
|
| void SetBeginMainFrameToCommitDurationEstimate(base::TimeDelta duration);
|
| void SetCommitToReadyToActivateDurationEstimate(base::TimeDelta duration);
|
| void SetPrepareTilesDurationEstimate(base::TimeDelta duration);
|
| @@ -213,9 +215,19 @@ class TestScheduler : public Scheduler {
|
|
|
| bool CanStart() const { return state_machine_.CanStartForTesting(); }
|
|
|
| + bool NeedsCommit() const { return state_machine_.needs_commit(); }
|
| +
|
| BeginFrameSource& frame_source() { return *frame_source_; }
|
| bool FrameProductionThrottled() { return throttle_frame_production_; }
|
|
|
| + bool MainThreadIsInHighLatencyMode() const {
|
| + return state_machine_.MainThreadIsInHighLatencyMode();
|
| + }
|
| +
|
| + bool WasSwapThrottledAtLastBeginFrame() const {
|
| + return was_swap_throttled_at_last_begin_frame_;
|
| + }
|
| +
|
| ~TestScheduler() override;
|
|
|
| base::TimeDelta BeginImplFrameInterval() {
|
| @@ -225,6 +237,7 @@ class TestScheduler : public Scheduler {
|
| protected:
|
| // Overridden from Scheduler.
|
| base::TimeTicks Now() const override;
|
| + void BeginImplFrameWithDeadline(const BeginFrameArgs& args) override;
|
|
|
| private:
|
| TestScheduler(
|
| @@ -239,6 +252,7 @@ class TestScheduler : public Scheduler {
|
| scoped_ptr<CompositorTimingHistory> compositor_timing_history);
|
|
|
| base::SimpleTestTickClock* now_src_;
|
| + bool was_swap_throttled_at_last_begin_frame_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TestScheduler);
|
| };
|
|
|