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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | |
72 #if !ENABLE(OILPAN) | 71 #if !ENABLE(OILPAN) |
73 void notifyElementDestroyed(); | 72 void notifyElementDestroyed(); |
74 #endif | 73 #endif |
75 | 74 |
76 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; | 75 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; |
77 // Must only be called once. | 76 // Must only be called once. |
78 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); | 77 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); |
79 bool hasActiveAnimationsOnCompositor() const; | 78 bool hasActiveAnimationsOnCompositor() const; |
80 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 79 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
81 bool cancelAnimationOnCompositor(); | 80 bool cancelAnimationOnCompositor(); |
(...skipping 28 matching lines...) Expand all Loading... |
110 Vector<int> m_compositorAnimationIds; | 109 Vector<int> m_compositorAnimationIds; |
111 | 110 |
112 friend class AnimationAnimationV8Test; | 111 friend class AnimationAnimationV8Test; |
113 }; | 112 }; |
114 | 113 |
115 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 114 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
116 | 115 |
117 } // namespace blink | 116 } // namespace blink |
118 | 117 |
119 #endif // Animation_h | 118 #endif // Animation_h |
OLD | NEW |