| 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(); |
| 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 Loading... |
| 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 |
| OLD | NEW |