| 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 "cc/test/ordered_simple_task_runner.h" | 5 #include "cc/test/ordered_simple_task_runner.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include <limits> | 10 #include <limits> |
| 8 #include <set> | 11 #include <set> |
| 9 #include <sstream> | 12 #include <sstream> |
| 10 #include <string> | 13 #include <string> |
| 11 #include <vector> | 14 #include <vector> |
| 12 | 15 |
| 13 #include "base/auto_reset.h" | 16 #include "base/auto_reset.h" |
| 14 #include "base/numerics/safe_conversions.h" | 17 #include "base/numerics/safe_conversions.h" |
| 15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 336 |
| 334 bool OrderedSimpleTaskRunner::AdvanceNowCallback() { | 337 bool OrderedSimpleTaskRunner::AdvanceNowCallback() { |
| 335 base::TimeTicks next_task_time = NextTaskTime(); | 338 base::TimeTicks next_task_time = NextTaskTime(); |
| 336 if (now_src_->NowTicks() < next_task_time) { | 339 if (now_src_->NowTicks() < next_task_time) { |
| 337 now_src_->Advance(next_task_time - now_src_->NowTicks()); | 340 now_src_->Advance(next_task_time - now_src_->NowTicks()); |
| 338 } | 341 } |
| 339 return true; | 342 return true; |
| 340 } | 343 } |
| 341 | 344 |
| 342 } // namespace cc | 345 } // namespace cc |
| OLD | NEW |