| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 Priority priority() const { return m_priority; } | 69 Priority priority() const { return m_priority; } |
| 70 Element* target() const { return m_target; } | 70 Element* target() const { return m_target; } |
| 71 | 71 |
| 72 void notifySampledEffectRemovedFromAnimationStack(); | 72 void notifySampledEffectRemovedFromAnimationStack(); |
| 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(double startTime, double timeOffset); | 79 bool maybeStartAnimationOnCompositor(int group, double startTime, double tim
eOffset, double playerPlaybackRate); |
| 80 bool maybeStartAnimationOnCompositor(double startTime, double timeOffset, do
uble playerPlaybackRate); | |
| 81 bool hasActiveAnimationsOnCompositor() const; | 80 bool hasActiveAnimationsOnCompositor() const; |
| 82 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 81 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 83 void cancelAnimationOnCompositor(); | 82 void cancelAnimationOnCompositor(); |
| 84 void pauseAnimationForTestingOnCompositor(double pauseTime); | 83 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 85 | 84 |
| 86 virtual void trace(Visitor*) override; | 85 virtual void trace(Visitor*) override; |
| 87 | 86 |
| 88 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } | 87 void downgradeToNormalAnimation() { m_priority = DefaultPriority; } |
| 89 | 88 |
| 90 protected: | 89 protected: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 108 Vector<int> m_compositorAnimationIds; | 107 Vector<int> m_compositorAnimationIds; |
| 109 | 108 |
| 110 friend class AnimationAnimationV8Test; | 109 friend class AnimationAnimationV8Test; |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); | 112 DEFINE_TYPE_CASTS(Animation, AnimationNode, animationNode, animationNode->isAnim
ation(), animationNode.isAnimation()); |
| 114 | 113 |
| 115 } // namespace blink | 114 } // namespace blink |
| 116 | 115 |
| 117 #endif // Animation_h | 116 #endif // Animation_h |
| OLD | NEW |