| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 static bool hasLowerPriority(AnimationPlayer* player1, AnimationPlayer* play
er2) | 139 static bool hasLowerPriority(AnimationPlayer* player1, AnimationPlayer* play
er2) |
| 140 { | 140 { |
| 141 return player1->sequenceNumber() < player2->sequenceNumber(); | 141 return player1->sequenceNumber() < player2->sequenceNumber(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // Checks if the AnimationStack is the last reference holder to the Player. | 144 // Checks if the AnimationStack is the last reference holder to the Player. |
| 145 bool canFree() const; | 145 bool canFree() const; |
| 146 | 146 |
| 147 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; | 147 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture = false) override; |
| 148 | 148 |
| 149 virtual void trace(Visitor*) override; | |
| 150 | |
| 151 private: | 149 private: |
| 152 AnimationPlayer(ExecutionContext*, AnimationTimeline&, AnimationNode*); | 150 AnimationPlayer(ExecutionContext*, AnimationTimeline&, AnimationNode*); |
| 153 double sourceEnd() const; | 151 double sourceEnd() const; |
| 154 bool limited(double currentTime) const; | 152 bool limited(double currentTime) const; |
| 155 void updateCurrentTimingState(TimingUpdateReason); | 153 void updateCurrentTimingState(TimingUpdateReason); |
| 156 void unpauseInternal(); | 154 void unpauseInternal(); |
| 157 | 155 |
| 158 double m_playbackRate; | 156 double m_playbackRate; |
| 159 | 157 |
| 160 double m_startTime; | 158 double m_startTime; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 // animation is started. Updated once the start time is known and each time | 204 // animation is started. Updated once the start time is known and each time |
| 207 // modifications are pushed to the compositor. | 205 // modifications are pushed to the compositor. |
| 208 OwnPtr<CompositorState> m_compositorState; | 206 OwnPtr<CompositorState> m_compositorState; |
| 209 bool m_compositorPending; | 207 bool m_compositorPending; |
| 210 bool m_currentTimePending; | 208 bool m_currentTimePending; |
| 211 }; | 209 }; |
| 212 | 210 |
| 213 } // namespace blink | 211 } // namespace blink |
| 214 | 212 |
| 215 #endif | 213 #endif |
| OLD | NEW |