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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 void setCompositorPending(bool effectChanged = false); | 160 void setCompositorPending(bool effectChanged = false); |
161 void notifyCompositorStartTime(double timelineTime); | 161 void notifyCompositorStartTime(double timelineTime); |
162 void notifyStartTime(double timelineTime); | 162 void notifyStartTime(double timelineTime); |
163 // CompositorAnimationPlayerClient implementation. | 163 // CompositorAnimationPlayerClient implementation. |
164 CompositorAnimationPlayer* compositorPlayer() const override { | 164 CompositorAnimationPlayer* compositorPlayer() const override { |
165 return m_compositorPlayer.get(); | 165 return m_compositorPlayer.get(); |
166 } | 166 } |
167 | 167 |
168 bool affects(const Element&, CSSPropertyID) const; | 168 bool affects(const Element&, CSSPropertyID) const; |
169 | 169 |
170 // Returns whether we should continue with the commit for this animation or wa
it until next commit. | 170 // Returns whether we should continue with the commit for this animation or |
| 171 // wait until next commit. |
171 bool preCommit(int compositorGroup, bool startOnCompositor); | 172 bool preCommit(int compositorGroup, bool startOnCompositor); |
172 void postCommit(double timelineTime); | 173 void postCommit(double timelineTime); |
173 | 174 |
174 unsigned sequenceNumber() const { return m_sequenceNumber; } | 175 unsigned sequenceNumber() const { return m_sequenceNumber; } |
175 int compositorGroup() const { return m_compositorGroup; } | 176 int compositorGroup() const { return m_compositorGroup; } |
176 | 177 |
177 static bool hasLowerPriority(const Animation* animation1, | 178 static bool hasLowerPriority(const Animation* animation1, |
178 const Animation* animation2) { | 179 const Animation* animation2) { |
179 return animation1->sequenceNumber() < animation2->sequenceNumber(); | 180 return animation1->sequenceNumber() < animation2->sequenceNumber(); |
180 } | 181 } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 311 |
311 bool m_currentTimePending; | 312 bool m_currentTimePending; |
312 bool m_stateIsBeingUpdated; | 313 bool m_stateIsBeingUpdated; |
313 | 314 |
314 bool m_effectSuppressed; | 315 bool m_effectSuppressed; |
315 }; | 316 }; |
316 | 317 |
317 } // namespace blink | 318 } // namespace blink |
318 | 319 |
319 #endif // Animation_h | 320 #endif // Animation_h |
OLD | NEW |