| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void wake(); | 105 void wake(); |
| 106 | 106 |
| 107 void trace(Visitor*); | 107 void trace(Visitor*); |
| 108 | 108 |
| 109 protected: | 109 protected: |
| 110 AnimationTimeline(Document*, PassOwnPtrWillBeRawPtr<PlatformTiming>); | 110 AnimationTimeline(Document*, PassOwnPtrWillBeRawPtr<PlatformTiming>); |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 RawPtrWillBeMember<Document> m_document; | 113 RawPtrWillBeMember<Document> m_document; |
| 114 double m_zeroTime; | 114 double m_zeroTime; |
| 115 bool m_zeroTimeInitialized; |
| 115 // AnimationPlayers which will be updated on the next frame | 116 // AnimationPlayers which will be updated on the next frame |
| 116 // i.e. current, in effect, or had timing changed | 117 // i.e. current, in effect, or had timing changed |
| 117 WillBeHeapHashSet<RefPtrWillBeMember<AnimationPlayer>> m_playersNeedingUpdat
e; | 118 WillBeHeapHashSet<RefPtrWillBeMember<AnimationPlayer>> m_playersNeedingUpdat
e; |
| 118 WillBeHeapHashSet<RawPtrWillBeWeakMember<AnimationPlayer>> m_players; | 119 WillBeHeapHashSet<RawPtrWillBeWeakMember<AnimationPlayer>> m_players; |
| 119 | 120 |
| 120 double m_documentCurrentTimeSnapshot; | |
| 121 double m_zeroTimeOffset; | |
| 122 double m_playbackRate; | 121 double m_playbackRate; |
| 123 | 122 |
| 124 friend class SMILTimeContainer; | 123 friend class SMILTimeContainer; |
| 125 static const double s_minimumDelay; | 124 static const double s_minimumDelay; |
| 126 | 125 |
| 127 OwnPtrWillBeMember<PlatformTiming> m_timing; | 126 OwnPtrWillBeMember<PlatformTiming> m_timing; |
| 128 double m_lastCurrentTimeInternal; | 127 double m_lastCurrentTimeInternal; |
| 129 | 128 |
| 130 class AnimationTimelineTiming final : public PlatformTiming { | 129 class AnimationTimelineTiming final : public PlatformTiming { |
| 131 public: | 130 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 148 RawPtrWillBeMember<AnimationTimeline> m_timeline; | 147 RawPtrWillBeMember<AnimationTimeline> m_timeline; |
| 149 Timer<AnimationTimelineTiming> m_timer; | 148 Timer<AnimationTimelineTiming> m_timer; |
| 150 }; | 149 }; |
| 151 | 150 |
| 152 friend class AnimationAnimationTimelineTest; | 151 friend class AnimationAnimationTimelineTest; |
| 153 }; | 152 }; |
| 154 | 153 |
| 155 } // namespace blink | 154 } // namespace blink |
| 156 | 155 |
| 157 #endif | 156 #endif |
| OLD | NEW |