| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); | 80 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); |
| 81 bool hasActiveAnimationsOnCompositor() const; | 81 bool hasActiveAnimationsOnCompositor() const; |
| 82 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 82 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 83 bool cancelAnimationOnCompositor(); | 83 bool cancelAnimationOnCompositor(); |
| 84 void restartAnimationOnCompositor(); | 84 void restartAnimationOnCompositor(); |
| 85 void cancelIncompatibleAnimationsOnCompositor(); | 85 void cancelIncompatibleAnimationsOnCompositor(); |
| 86 void pauseAnimationForTestingOnCompositor(double pauseTime); | 86 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 87 | 87 |
| 88 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat
ionIds) { m_compositorAnimationIds = compositorAnimationIds; } | 88 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat
ionIds) { m_compositorAnimationIds = compositorAnimationIds; } |
| 89 | 89 |
| 90 virtual void trace(Visitor*) override; | 90 DECLARE_VIRTUAL_TRACE(); |
| 91 | 91 |
| 92 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } | 92 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } |
| 93 | 93 |
| 94 protected: | 94 protected: |
| 95 void applyEffects(); | 95 void applyEffects(); |
| 96 void clearEffects(); | 96 void clearEffects(); |
| 97 virtual void updateChildrenAndEffects() const override; | 97 virtual void updateChildrenAndEffects() const override; |
| 98 virtual void attach(AnimationPlayer*) override; | 98 virtual void attach(AnimationPlayer*) override; |
| 99 virtual void detach() override; | 99 virtual void detach() override; |
| 100 virtual void specifiedTimingChanged() override; | 100 virtual void specifiedTimingChanged() override; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 112 Vector<int> m_compositorAnimationIds; | 112 Vector<int> m_compositorAnimationIds; |
| 113 | 113 |
| 114 friend class AnimationAnimationV8Test; | 114 friend class AnimationAnimationV8Test; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 117 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // Animation_h | 121 #endif // Animation_h |
| OLD | NEW |