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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 bool isKeyframeEffect() const override { return true; } | 66 bool isKeyframeEffect() const override { return true; } |
67 | 67 |
68 bool affects(PropertyHandle) const; | 68 bool affects(PropertyHandle) const; |
69 const EffectModel* model() const { return m_model.get(); } | 69 const EffectModel* model() const { return m_model.get(); } |
70 EffectModel* model() { return m_model.get(); } | 70 EffectModel* model() { return m_model.get(); } |
71 void setModel(EffectModel* model) { m_model = model; } | 71 void setModel(EffectModel* model) { m_model = model; } |
72 Priority priority() const { return m_priority; } | 72 Priority priority() const { return m_priority; } |
73 Element* target() const { return m_target; } | 73 Element* target() const { return m_target; } |
74 | 74 |
| 75 void notifySampledEffectRemovedFromAnimationStack(); |
75 #if !ENABLE(OILPAN) | 76 #if !ENABLE(OILPAN) |
76 void notifyElementDestroyed(); | 77 void notifyElementDestroyed(); |
77 #endif | 78 #endif |
78 | 79 |
79 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const
; | 80 bool isCandidateForAnimationOnCompositor(double animationPlaybackRate) const
; |
80 // Must only be called once. | 81 // Must only be called once. |
81 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double animationPlaybackRate); | 82 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double animationPlaybackRate); |
82 bool hasActiveAnimationsOnCompositor() const; | 83 bool hasActiveAnimationsOnCompositor() const; |
83 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 84 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
84 bool cancelAnimationOnCompositor(); | 85 bool cancelAnimationOnCompositor(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Vector<int> m_compositorAnimationIds; | 119 Vector<int> m_compositorAnimationIds; |
119 | 120 |
120 friend class AnimationAnimationV8Test; | 121 friend class AnimationAnimationV8Test; |
121 }; | 122 }; |
122 | 123 |
123 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode-
>isKeyframeEffect(), animationNode.isKeyframeEffect()); | 124 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode-
>isKeyframeEffect(), animationNode.isKeyframeEffect()); |
124 | 125 |
125 } // namespace blink | 126 } // namespace blink |
126 | 127 |
127 #endif // KeyframeEffect_h | 128 #endif // KeyframeEffect_h |
OLD | NEW |