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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 class AnimationTimelineTiming final : public PlatformTiming { | 136 class AnimationTimelineTiming final : public PlatformTiming { |
137 public: | 137 public: |
138 AnimationTimelineTiming(AnimationTimeline* timeline) | 138 AnimationTimelineTiming(AnimationTimeline* timeline) |
139 : m_timeline(timeline) | 139 : m_timeline(timeline) |
140 , m_timer(this, &AnimationTimelineTiming::timerFired) | 140 , m_timer(this, &AnimationTimelineTiming::timerFired) |
141 { | 141 { |
142 ASSERT(m_timeline); | 142 ASSERT(m_timeline); |
143 } | 143 } |
144 | 144 |
145 virtual void wakeAfter(double duration) override; | 145 void wakeAfter(double duration) override; |
146 virtual void cancelWake() override; | 146 void cancelWake() override; |
147 virtual void serviceOnNextFrame() override; | 147 void serviceOnNextFrame() override; |
148 | 148 |
149 void timerFired(Timer<AnimationTimelineTiming>*) { m_timeline->wake(); } | 149 void timerFired(Timer<AnimationTimelineTiming>*) { m_timeline->wake(); } |
150 | 150 |
151 DECLARE_VIRTUAL_TRACE(); | 151 DECLARE_VIRTUAL_TRACE(); |
152 | 152 |
153 private: | 153 private: |
154 RawPtrWillBeMember<AnimationTimeline> m_timeline; | 154 RawPtrWillBeMember<AnimationTimeline> m_timeline; |
155 Timer<AnimationTimelineTiming> m_timer; | 155 Timer<AnimationTimelineTiming> m_timer; |
156 }; | 156 }; |
157 | 157 |
158 friend class AnimationAnimationTimelineTest; | 158 friend class AnimationAnimationTimelineTest; |
159 }; | 159 }; |
160 | 160 |
161 } // namespace blink | 161 } // namespace blink |
162 | 162 |
163 #endif | 163 #endif |
OLD | NEW |