| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #if !ENABLE(OILPAN) | 73 #if !ENABLE(OILPAN) |
| 74 void notifyElementDestroyed(); | 74 void notifyElementDestroyed(); |
| 75 #endif | 75 #endif |
| 76 | 76 |
| 77 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; | 77 bool isCandidateForAnimationOnCompositor(double playerPlaybackRate) const; |
| 78 // Must only be called once. | 78 // Must only be called once. |
| 79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); | 79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); |
| 80 bool hasActiveAnimationsOnCompositor() const; | 80 bool hasActiveAnimationsOnCompositor() const; |
| 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 82 void cancelAnimationOnCompositor(); | 82 void cancelAnimationOnCompositor(); |
| 83 void cancelIncompatibleAnimationsOnCompositor(); |
| 83 void pauseAnimationForTestingOnCompositor(double pauseTime); | 84 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 84 | 85 |
| 86 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat
ionIds) { m_compositorAnimationIds = compositorAnimationIds; } |
| 87 |
| 85 virtual void trace(Visitor*) override; | 88 virtual void trace(Visitor*) override; |
| 86 | 89 |
| 87 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } | 90 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } |
| 88 | 91 |
| 89 protected: | 92 protected: |
| 90 void applyEffects(); | 93 void applyEffects(); |
| 91 void clearEffects(); | 94 void clearEffects(); |
| 92 virtual void updateChildrenAndEffects() const override; | 95 virtual void updateChildrenAndEffects() const override; |
| 93 virtual void attach(AnimationPlayer*) override; | 96 virtual void attach(AnimationPlayer*) override; |
| 94 virtual void detach() override; | 97 virtual void detach() override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 107 Vector<int> m_compositorAnimationIds; | 110 Vector<int> m_compositorAnimationIds; |
| 108 | 111 |
| 109 friend class AnimationAnimationV8Test; | 112 friend class AnimationAnimationV8Test; |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 115 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
| 113 | 116 |
| 114 } // namespace blink | 117 } // namespace blink |
| 115 | 118 |
| 116 #endif // Animation_h | 119 #endif // Animation_h |
| OLD | NEW |