| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 const AnimationEffect::CompositableValueMap* compositableValues() const | 50 const AnimationEffect::CompositableValueMap* compositableValues() const |
| 51 { | 51 { |
| 52 ASSERT(m_compositableValues); | 52 ASSERT(m_compositableValues); |
| 53 return m_compositableValues.get(); | 53 return m_compositableValues.get(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool affects(CSSPropertyID) const; | 56 bool affects(CSSPropertyID) const; |
| 57 const AnimationEffect* effect() const { return m_effect.get(); } | 57 const AnimationEffect* effect() const { return m_effect.get(); } |
| 58 Priority priority() const { return m_priority; } | 58 Priority priority() const { return m_priority; } |
| 59 Element* target() { return m_target.get(); } |
| 59 | 60 |
| 60 bool isCandidateForAnimationOnCompositor() const; | 61 bool isCandidateForAnimationOnCompositor() const; |
| 61 // Must only be called once and assumes to be part of a player without a sta
rt time. | 62 // Must only be called once and assumes to be part of a player without a sta
rt time. |
| 62 bool maybeStartAnimationOnCompositor(); | 63 bool maybeStartAnimationOnCompositor(); |
| 63 bool hasActiveAnimationsOnCompositor() const; | 64 bool hasActiveAnimationsOnCompositor() const; |
| 64 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; | 65 bool hasActiveAnimationsOnCompositor(CSSPropertyID) const; |
| 65 void cancelAnimationOnCompositor(); | 66 void cancelAnimationOnCompositor(); |
| 66 void pauseAnimationForTestingOnCompositor(double pauseTime); | 67 void pauseAnimationForTestingOnCompositor(double pauseTime); |
| 67 | 68 |
| 68 protected: | 69 protected: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 86 Priority m_priority; | 87 Priority m_priority; |
| 87 | 88 |
| 88 Vector<int> m_compositorAnimationIds; | 89 Vector<int> m_compositorAnimationIds; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 DEFINE_TYPE_CASTS(Animation, TimedItem, timedItem, timedItem->isAnimation(), tim
edItem.isAnimation()); | 92 DEFINE_TYPE_CASTS(Animation, TimedItem, timedItem, timedItem->isAnimation(), tim
edItem.isAnimation()); |
| 92 | 93 |
| 93 } // namespace WebCore | 94 } // namespace WebCore |
| 94 | 95 |
| 95 #endif | 96 #endif |
| OLD | NEW |