OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "platform/Timer.h" | 28 #include "platform/Timer.h" |
29 | 29 |
30 #include "platform/PlatformThreadData.h" | 30 #include "platform/PlatformThreadData.h" |
31 #include "platform/ThreadTimers.h" | 31 #include "platform/ThreadTimers.h" |
32 #include "platform/heap/AddressSanitizer.h" | |
33 #include "wtf/Atomics.h" | 32 #include "wtf/Atomics.h" |
34 #include "wtf/CurrentTime.h" | 33 #include "wtf/CurrentTime.h" |
35 #include "wtf/HashSet.h" | 34 #include "wtf/HashSet.h" |
36 #include <algorithm> | 35 #include <algorithm> |
37 #include <limits.h> | 36 #include <limits.h> |
38 #include <limits> | 37 #include <limits> |
39 #include <math.h> | 38 #include <math.h> |
40 | 39 |
41 namespace blink { | 40 namespace blink { |
42 | 41 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 setNextFireTime(m_unalignedNextFireTime); | 404 setNextFireTime(m_unalignedNextFireTime); |
406 } | 405 } |
407 | 406 |
408 double TimerBase::nextUnalignedFireInterval() const | 407 double TimerBase::nextUnalignedFireInterval() const |
409 { | 408 { |
410 ASSERT(isActive()); | 409 ASSERT(isActive()); |
411 return std::max(m_unalignedNextFireTime - monotonicallyIncreasingTime(), 0.0
); | 410 return std::max(m_unalignedNextFireTime - monotonicallyIncreasingTime(), 0.0
); |
412 } | 411 } |
413 | 412 |
414 } // namespace blink | 413 } // namespace blink |
OLD | NEW |