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

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

Issue 967523002: Revert of Web Animations: Remove AnimationPlayer discarding logic (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/core/animation/Animation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 virtual bool isAnimation() const override { return true; } 62 virtual bool isAnimation() const override { return true; }
63 63
64 bool affects(CSSPropertyID) const; 64 bool affects(CSSPropertyID) const;
65 const AnimationEffect* effect() const { return m_effect.get(); } 65 const AnimationEffect* effect() const { return m_effect.get(); }
66 AnimationEffect* effect() { return m_effect.get(); } 66 AnimationEffect* effect() { return m_effect.get(); }
67 void setEffect(PassRefPtrWillBeRawPtr<AnimationEffect> effect) { m_effect = effect; } 67 void setEffect(PassRefPtrWillBeRawPtr<AnimationEffect> effect) { m_effect = effect; }
68 Priority priority() const { return m_priority; } 68 Priority priority() const { return m_priority; }
69 Element* target() const { return m_target; } 69 Element* target() const { return m_target; }
70 70
71 void notifySampledEffectRemovedFromAnimationStack();
71 #if !ENABLE(OILPAN) 72 #if !ENABLE(OILPAN)
72 void notifyElementDestroyed(); 73 void notifyElementDestroyed();
73 #endif 74 #endif
74 75
75 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; 76 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const;
76 // Must only be called once. 77 // Must only be called once.
77 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double playerPlaybackRate); 78 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim eOffset, double playerPlaybackRate);
78 bool hasActiveAnimationsOnCompositor() const; 79 bool hasActiveAnimationsOnCompositor() const;
79 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; 80 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const;
80 bool cancelAnimationOnCompositor(); 81 bool cancelAnimationOnCompositor();
(...skipping 28 matching lines...) Expand all
109 Vector<int> m_compositorAnimationIds; 110 Vector<int> m_compositorAnimationIds;
110 111
111 friend class AnimationAnimationV8Test; 112 friend class AnimationAnimationV8Test;
112 }; 113 };
113 114
114 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation()); 115 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim ation(), animationNode.isAnimation());
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif // Animation_h 119 #endif // Animation_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698