OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef AnimationClock_h | 31 #ifndef AnimationClock_h |
32 #define AnimationClock_h | 32 #define AnimationClock_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.h" |
36 #include "wtf/CurrentTime.h" | 36 #include "wtf/CurrentTime.h" |
37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
38 #include "wtf/PassOwnPtr.h" | |
39 #include <limits> | 38 #include <limits> |
40 | 39 |
41 namespace blink { | 40 namespace blink { |
42 | 41 |
43 class CORE_EXPORT AnimationClock { | 42 class CORE_EXPORT AnimationClock { |
44 DISALLOW_NEW(); | 43 DISALLOW_NEW(); |
45 WTF_MAKE_NONCOPYABLE(AnimationClock); | 44 WTF_MAKE_NONCOPYABLE(AnimationClock); |
46 public: | 45 public: |
47 explicit AnimationClock(WTF::TimeFunction monotonicallyIncreasingTime = WTF:
:monotonicallyIncreasingTime) | 46 explicit AnimationClock(WTF::TimeFunction monotonicallyIncreasingTime = WTF:
:monotonicallyIncreasingTime) |
48 : m_monotonicallyIncreasingTime(monotonicallyIncreasingTime) | 47 : m_monotonicallyIncreasingTime(monotonicallyIncreasingTime) |
(...skipping 11 matching lines...) Expand all Loading... |
60 private: | 59 private: |
61 WTF::TimeFunction m_monotonicallyIncreasingTime; | 60 WTF::TimeFunction m_monotonicallyIncreasingTime; |
62 double m_time; | 61 double m_time; |
63 unsigned m_currentTask; | 62 unsigned m_currentTask; |
64 static unsigned s_currentTask; | 63 static unsigned s_currentTask; |
65 }; | 64 }; |
66 | 65 |
67 } // namespace blink | 66 } // namespace blink |
68 | 67 |
69 #endif // AnimationClock_h | 68 #endif // AnimationClock_h |
OLD | NEW |