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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 bool IsActive(); | 81 bool IsActive(); |
82 bool HasPendingUpdates() const { | 82 bool HasPendingUpdates() const { |
83 return !animations_needing_update_.IsEmpty(); | 83 return !animations_needing_update_.IsEmpty(); |
84 } | 84 } |
85 double ZeroTime(); | 85 double ZeroTime(); |
86 double currentTime(bool& is_null); | 86 double currentTime(bool& is_null); |
87 double currentTime(); | 87 double currentTime(); |
88 double CurrentTimeInternal(bool& is_null); | 88 double CurrentTimeInternal(bool& is_null); |
89 double CurrentTimeInternal(); | 89 double CurrentTimeInternal(); |
90 void setCurrentTime(double); | 90 void setCurrentTime(double, bool is_null); |
91 void SetCurrentTimeInternal(double); | 91 void SetCurrentTimeInternal(double); |
92 double EffectiveTime(); | 92 double EffectiveTime(); |
93 void PauseAnimationsForTesting(double); | 93 void PauseAnimationsForTesting(double); |
94 | 94 |
95 void SetAllCompositorPending(bool source_changed = false); | 95 void SetAllCompositorPending(bool source_changed = false); |
96 void SetOutdatedAnimation(Animation*); | 96 void SetOutdatedAnimation(Animation*); |
97 void ClearOutdatedAnimation(Animation*); | 97 void ClearOutdatedAnimation(Animation*); |
98 bool HasOutdatedAnimation() const { return outdated_animation_count_ > 0; } | 98 bool HasOutdatedAnimation() const { return outdated_animation_count_ > 0; } |
99 bool NeedsAnimationTimingUpdate(); | 99 bool NeedsAnimationTimingUpdate(); |
100 void InvalidateKeyframeEffects(const TreeScope&); | 100 void InvalidateKeyframeEffects(const TreeScope&); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 Member<AnimationTimeline> timeline_; | 157 Member<AnimationTimeline> timeline_; |
158 TaskRunnerTimer<AnimationTimelineTiming> timer_; | 158 TaskRunnerTimer<AnimationTimelineTiming> timer_; |
159 }; | 159 }; |
160 | 160 |
161 friend class AnimationAnimationTimelineTest; | 161 friend class AnimationAnimationTimelineTest; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 #endif | 166 #endif |
OLD | NEW |