Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: Source/core/animation/AnimationPlayer.h

Issue 926963003: InlinedVisitor: Migrate animation to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 #if !ENABLE(OILPAN) 165 #if !ENABLE(OILPAN)
166 // Checks if the AnimationStack is the last reference holder to the Player. 166 // Checks if the AnimationStack is the last reference holder to the Player.
167 // This won't be needed when AnimationPlayer is moved to Oilpan. 167 // This won't be needed when AnimationPlayer is moved to Oilpan.
168 bool canFree() const; 168 bool canFree() const;
169 #endif 169 #endif
170 170
171 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) override; 171 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even tListener>, bool useCapture = false) override;
172 172
173 virtual void trace(Visitor*) override; 173 DECLARE_VIRTUAL_TRACE();
174 174
175 private: 175 private:
176 AnimationPlayer(ExecutionContext*, AnimationTimeline&, AnimationNode*); 176 AnimationPlayer(ExecutionContext*, AnimationTimeline&, AnimationNode*);
177 177
178 double sourceEnd() const; 178 double sourceEnd() const;
179 bool limited(double currentTime) const; 179 bool limited(double currentTime) const;
180 180
181 AnimationPlayState calculatePlayState(); 181 AnimationPlayState calculatePlayState();
182 double calculateCurrentTime() const; 182 double calculateCurrentTime() const;
183 183
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 int m_compositorGroup; 264 int m_compositorGroup;
265 265
266 bool m_currentTimePending; 266 bool m_currentTimePending;
267 bool m_stateIsBeingUpdated; 267 bool m_stateIsBeingUpdated;
268 268
269 }; 269 };
270 270
271 } // namespace blink 271 } // namespace blink
272 272
273 #endif // AnimationPlayer_h 273 #endif // AnimationPlayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698