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