OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/scheduler/renderer/renderer_scheduler_impl.h" | 5 #include "components/scheduler/renderer/renderer_scheduler_impl.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/macros.h" |
8 #include "base/test/simple_test_tick_clock.h" | 9 #include "base/test/simple_test_tick_clock.h" |
9 #include "cc/output/begin_frame_args.h" | 10 #include "cc/output/begin_frame_args.h" |
10 #include "cc/test/ordered_simple_task_runner.h" | 11 #include "cc/test/ordered_simple_task_runner.h" |
11 #include "components/scheduler/base/test_time_source.h" | 12 #include "components/scheduler/base/test_time_source.h" |
12 #include "components/scheduler/child/scheduler_tqm_delegate_for_test.h" | 13 #include "components/scheduler/child/scheduler_tqm_delegate_for_test.h" |
13 #include "components/scheduler/child/scheduler_tqm_delegate_impl.h" | 14 #include "components/scheduler/child/scheduler_tqm_delegate_impl.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace scheduler { | 18 namespace scheduler { |
(...skipping 2422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2440 } | 2441 } |
2441 | 2442 |
2442 base::TimeDelta time_till_next_frame = | 2443 base::TimeDelta time_till_next_frame = |
2443 EstimatedNextFrameBegin() - clock_->NowTicks(); | 2444 EstimatedNextFrameBegin() - clock_->NowTicks(); |
2444 if (time_till_next_frame > base::TimeDelta()) | 2445 if (time_till_next_frame > base::TimeDelta()) |
2445 clock_->Advance(time_till_next_frame); | 2446 clock_->Advance(time_till_next_frame); |
2446 } | 2447 } |
2447 } | 2448 } |
2448 | 2449 |
2449 } // namespace scheduler | 2450 } // namespace scheduler |
OLD | NEW |