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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void postCommit(double timelineTime); | 169 void postCommit(double timelineTime); |
170 | 170 |
171 unsigned sequenceNumber() const { return m_sequenceNumber; } | 171 unsigned sequenceNumber() const { return m_sequenceNumber; } |
172 int compositorGroup() const { return m_compositorGroup; } | 172 int compositorGroup() const { return m_compositorGroup; } |
173 | 173 |
174 static bool hasLowerPriority(const Animation* animation1, const Animation* a
nimation2) | 174 static bool hasLowerPriority(const Animation* animation1, const Animation* a
nimation2) |
175 { | 175 { |
176 return animation1->sequenceNumber() < animation2->sequenceNumber(); | 176 return animation1->sequenceNumber() < animation2->sequenceNumber(); |
177 } | 177 } |
178 | 178 |
179 bool addEventListener(const AtomicString& eventType, PassRefPtr<EventListene
r>, bool useCapture = false) override; | 179 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr<
EventListener>, bool useCapture = false) override; |
180 | 180 |
181 DECLARE_VIRTUAL_TRACE(); | 181 DECLARE_VIRTUAL_TRACE(); |
182 | 182 |
183 protected: | 183 protected: |
184 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; | 184 bool dispatchEventInternal(PassRefPtrWillBeRawPtr<Event>) override; |
185 | 185 |
186 private: | 186 private: |
187 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*); | 187 Animation(ExecutionContext*, AnimationTimeline&, AnimationEffect*); |
188 | 188 |
189 void clearOutdated(); | 189 void clearOutdated(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 297 |
298 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; | 298 OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer; |
299 | 299 |
300 bool m_currentTimePending; | 300 bool m_currentTimePending; |
301 bool m_stateIsBeingUpdated; | 301 bool m_stateIsBeingUpdated; |
302 }; | 302 }; |
303 | 303 |
304 } // namespace blink | 304 } // namespace blink |
305 | 305 |
306 #endif // Animation_h | 306 #endif // Animation_h |
OLD | NEW |