OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "cc/scheduler/frame_rate_controller.h" | 5 #include "cc/scheduler/frame_rate_controller.h" |
6 | 6 |
| 7 #include "base/bind.h" |
7 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
8 #include "base/location.h" | 9 #include "base/location.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "cc/scheduler/delay_based_time_source.h" | 12 #include "cc/scheduler/delay_based_time_source.h" |
12 #include "cc/scheduler/time_source.h" | 13 #include "cc/scheduler/time_source.h" |
13 | 14 |
14 namespace cc { | 15 namespace cc { |
15 | 16 |
16 class FrameRateControllerTimeSourceAdapter : public TimeSourceClient { | 17 class FrameRateControllerTimeSourceAdapter : public TimeSourceClient { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 164 } |
164 | 165 |
165 base::TimeTicks FrameRateController::LastTickTime() { | 166 base::TimeTicks FrameRateController::LastTickTime() { |
166 if (is_time_source_throttling_) | 167 if (is_time_source_throttling_) |
167 return time_source_->LastTickTime(); | 168 return time_source_->LastTickTime(); |
168 | 169 |
169 return base::TimeTicks::Now(); | 170 return base::TimeTicks::Now(); |
170 } | 171 } |
171 | 172 |
172 } // namespace cc | 173 } // namespace cc |
OLD | NEW |