Index: cc/surfaces/display_scheduler_unittest.cc |
diff --git a/cc/surfaces/display_scheduler_unittest.cc b/cc/surfaces/display_scheduler_unittest.cc |
index ea7a22fba5a84d9bf54d197f19a0911a4101c81e..ec9c2214405bd8eebab4fd9c9d482bc07d92ccd1 100644 |
--- a/cc/surfaces/display_scheduler_unittest.cc |
+++ b/cc/surfaces/display_scheduler_unittest.cc |
@@ -45,8 +45,10 @@ class TestDisplayScheduler : public DisplayScheduler { |
TestDisplayScheduler(BeginFrameSource* begin_frame_source, |
base::SingleThreadTaskRunner* task_runner, |
int max_pending_swaps) |
- : DisplayScheduler(begin_frame_source, task_runner, max_pending_swaps), |
- scheduler_begin_frame_deadline_count_(0) {} |
+ : DisplayScheduler(task_runner, max_pending_swaps), |
+ scheduler_begin_frame_deadline_count_(0) { |
+ SetBeginFrameSource(begin_frame_source); |
+ } |
base::TimeTicks DesiredBeginFrameDeadlineTimeForTest() { |
return DesiredBeginFrameDeadlineTime(); |