Index: cc/test/scheduler_test_common.cc |
diff --git a/cc/test/scheduler_test_common.cc b/cc/test/scheduler_test_common.cc |
index 48e7eb588b5bee9276307a6f6b1c529a39429cf3..7419b21e446cd1040cbf329909be1c73e9b90fed 100644 |
--- a/cc/test/scheduler_test_common.cc |
+++ b/cc/test/scheduler_test_common.cc |
@@ -83,6 +83,14 @@ FakeCompositorTimingHistory::FakeCompositorTimingHistory( |
FakeCompositorTimingHistory::~FakeCompositorTimingHistory() { |
} |
+void FakeCompositorTimingHistory::SetAllEstimatesTo(base::TimeDelta duration) { |
+ begin_main_frame_to_commit_duration_ = duration; |
+ commit_to_ready_to_activate_duration_ = duration; |
+ prepare_tiles_duration_ = duration; |
+ activate_duration_ = duration; |
+ draw_duration_ = duration; |
+} |
+ |
void FakeCompositorTimingHistory::SetBeginMainFrameToCommitDurationEstimate( |
base::TimeDelta duration) { |
begin_main_frame_to_commit_duration_ = duration; |