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/scheduler/begin_frame_source.h" | 5 #include "cc/scheduler/begin_frame_source.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
11 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
12 #include "base/trace_event/trace_event_argument.h" | 14 #include "base/trace_event/trace_event_argument.h" |
13 #include "cc/scheduler/delay_based_time_source.h" | 15 #include "cc/scheduler/delay_based_time_source.h" |
14 #include "cc/scheduler/scheduler.h" | 16 #include "cc/scheduler/scheduler.h" |
15 | 17 |
16 namespace cc { | 18 namespace cc { |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 if (!observer_->LastUsedBeginFrameArgs().IsValid()) | 450 if (!observer_->LastUsedBeginFrameArgs().IsValid()) |
449 return true; | 451 return true; |
450 | 452 |
451 // Only allow new args have a *strictly bigger* frame_time value and statisfy | 453 // Only allow new args have a *strictly bigger* frame_time value and statisfy |
452 // minimum interval requirement. | 454 // minimum interval requirement. |
453 return (args.frame_time >= | 455 return (args.frame_time >= |
454 observer_->LastUsedBeginFrameArgs().frame_time + minimum_interval_); | 456 observer_->LastUsedBeginFrameArgs().frame_time + minimum_interval_); |
455 } | 457 } |
456 | 458 |
457 } // namespace cc | 459 } // namespace cc |
OLD | NEW |