| 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 hasActiveAnimationsOnCompositor() const; | 80 bool hasActiveAnimationsOnCompositor() const; |
| 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 82 bool cancelAnimationOnCompositor(); | 82 bool cancelAnimationOnCompositor(); |
| 83 void restartAnimationOnCompositor(); | 83 void restartAnimationOnCompositor(); |
| 84 void cancelIncompatibleAnimationsOnCompositor(); | 84 void cancelIncompatibleAnimationsOnCompositor(); |
| 85 void pauseAnimationForTestingOnCompositor(double pauseTime); | 85 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 86 | 86 |
| 87 bool canAttachCompositedLayers() const; | 87 bool canAttachCompositedLayers() const; |
| 88 void attachCompositedLayers(); | 88 void attachCompositedLayers(); |
| 89 | 89 |
| 90 void setCompositorAnimationIdsForTesting(const Vector<int>& compositorAnimat
ionIds) { m_compositorAnimationIds = compositorAnimationIds; } | |
| 91 | |
| 92 DECLARE_VIRTUAL_TRACE(); | 90 DECLARE_VIRTUAL_TRACE(); |
| 93 | 91 |
| 94 void downgradeToNormal() { m_priority = DefaultPriority; } | 92 void downgradeToNormal() { m_priority = DefaultPriority; } |
| 95 | 93 |
| 96 protected: | 94 protected: |
| 97 void applyEffects(); | 95 void applyEffects(); |
| 98 void clearEffects(); | 96 void clearEffects(); |
| 99 void updateChildrenAndEffects() const override; | 97 void updateChildrenAndEffects() const override; |
| 100 void attach(Animation*) override; | 98 void attach(Animation*) override; |
| 101 void detach() override; | 99 void detach() override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 116 Vector<int> m_compositorAnimationIds; | 114 Vector<int> m_compositorAnimationIds; |
| 117 | 115 |
| 118 friend class AnimationAnimationV8Test; | 116 friend class AnimationAnimationV8Test; |
| 119 }; | 117 }; |
| 120 | 118 |
| 121 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode-
>isKeyframeEffect(), animationNode.isKeyframeEffect()); | 119 DEFINE_TYPE_CASTS(KeyframeEffect, AnimationEffect, animationNode, animationNode-
>isKeyframeEffect(), animationNode.isKeyframeEffect()); |
| 122 | 120 |
| 123 } // namespace blink | 121 } // namespace blink |
| 124 | 122 |
| 125 #endif // KeyframeEffect_h | 123 #endif // KeyframeEffect_h |
| OLD | NEW |