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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void updateSpecifiedTiming(const Timing&); | 111 void updateSpecifiedTiming(const Timing&); |
112 | 112 |
113 void getComputedTiming(ComputedTimingProperties&); | 113 void getComputedTiming(ComputedTimingProperties&); |
114 ComputedTimingProperties getComputedTiming(); | 114 ComputedTimingProperties getComputedTiming(); |
115 | 115 |
116 DECLARE_VIRTUAL_TRACE(); | 116 DECLARE_VIRTUAL_TRACE(); |
117 | 117 |
118 protected: | 118 protected: |
119 explicit AnimationEffectReadOnly(const Timing&, EventDelegate* = nullptr); | 119 explicit AnimationEffectReadOnly(const Timing&, EventDelegate* = nullptr); |
120 | 120 |
121 // When AnimationEffectReadOnly receives a new inherited time via updateInheri
tedTime | 121 // When AnimationEffectReadOnly receives a new inherited time via |
122 // it will (if necessary) recalculate timings and (if necessary) call | 122 // updateInheritedTime it will (if necessary) recalculate timings and (if |
123 // updateChildrenAndEffects. | 123 // necessary) call updateChildrenAndEffects. |
124 void updateInheritedTime(double inheritedTime, TimingUpdateReason) const; | 124 void updateInheritedTime(double inheritedTime, TimingUpdateReason) const; |
125 void invalidate() const { m_needsUpdate = true; } | 125 void invalidate() const { m_needsUpdate = true; } |
126 bool requiresIterationEvents() const { | 126 bool requiresIterationEvents() const { |
127 return m_eventDelegate && m_eventDelegate->requiresIterationEvents(*this); | 127 return m_eventDelegate && m_eventDelegate->requiresIterationEvents(*this); |
128 } | 128 } |
129 void clearEventDelegate() { m_eventDelegate = nullptr; } | 129 void clearEventDelegate() { m_eventDelegate = nullptr; } |
130 | 130 |
131 virtual void attach(Animation* animation) { m_animation = animation; } | 131 virtual void attach(Animation* animation) { m_animation = animation; } |
132 | 132 |
133 virtual void detach() { | 133 virtual void detach() { |
(...skipping 30 matching lines...) Expand all Loading... |
164 mutable bool m_needsUpdate; | 164 mutable bool m_needsUpdate; |
165 mutable double m_lastUpdateTime; | 165 mutable double m_lastUpdateTime; |
166 String m_name; | 166 String m_name; |
167 | 167 |
168 const CalculatedTiming& ensureCalculated() const; | 168 const CalculatedTiming& ensureCalculated() const; |
169 }; | 169 }; |
170 | 170 |
171 } // namespace blink | 171 } // namespace blink |
172 | 172 |
173 #endif // AnimationEffectReadOnly_h | 173 #endif // AnimationEffectReadOnly_h |
OLD | NEW |