| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 63 |
| 64 virtual bool isAnimation() const override { return true; } | 64 virtual bool isAnimation() const override { return true; } |
| 65 | 65 |
| 66 bool affects(CSSPropertyID) const; | 66 bool affects(CSSPropertyID) const; |
| 67 const AnimationEffect* effect() const { return m_effect.get(); } | 67 const AnimationEffect* effect() const { return m_effect.get(); } |
| 68 AnimationEffect* effect() { return m_effect.get(); } | 68 AnimationEffect* effect() { return m_effect.get(); } |
| 69 Priority priority() const { return m_priority; } | 69 Priority priority() const { return m_priority; } |
| 70 Element* target() { return m_target; } | 70 Element* target() { return m_target; } |
| 71 | 71 |
| 72 void notifySampledEffectRemovedFromAnimationStack(); | 72 void notifySampledEffectRemovedFromAnimationStack(); |
| 73 #if !ENABLE(OILPAN) | |
| 74 void notifyElementDestroyed(); | 73 void notifyElementDestroyed(); |
| 75 #endif | |
| 76 | 74 |
| 77 bool isCandidateForAnimationOnCompositor() const; | 75 bool isCandidateForAnimationOnCompositor() const; |
| 78 // Must only be called once. | 76 // Must only be called once. |
| 79 bool maybeStartAnimationOnCompositor(double startTime, double timeOffset); | 77 bool maybeStartAnimationOnCompositor(double startTime, double timeOffset); |
| 80 bool hasActiveAnimationsOnCompositor() const; | 78 bool hasActiveAnimationsOnCompositor() const; |
| 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 79 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 82 void cancelAnimationOnCompositor(); | 80 void cancelAnimationOnCompositor(); |
| 83 void pauseAnimationForTestingOnCompositor(double pauseTime); | 81 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 84 | 82 |
| 85 virtual void trace(Visitor*); | 83 virtual void trace(Visitor*); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 105 Vector<int> m_compositorAnimationIds; | 103 Vector<int> m_compositorAnimationIds; |
| 106 | 104 |
| 107 friend class AnimationAnimationV8Test; | 105 friend class AnimationAnimationV8Test; |
| 108 }; | 106 }; |
| 109 | 107 |
| 110 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 108 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
| 111 | 109 |
| 112 } // namespace blink | 110 } // namespace blink |
| 113 | 111 |
| 114 #endif // Animation_h | 112 #endif // Animation_h |
| OLD | NEW |