| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef SampledEffect_h | 5 #ifndef SampledEffect_h |
| 6 #define SampledEffect_h | 6 #define SampledEffect_h |
| 7 | 7 |
| 8 #include "core/animation/Animation.h" | 8 #include "core/animation/Animation.h" |
| 9 #include "core/animation/AnimationPlayer.h" | 9 #include "core/animation/AnimationPlayer.h" |
| 10 #include "core/animation/Interpolation.h" | 10 #include "core/animation/Interpolation.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 const Vector<RefPtr<Interpolation> >& interpolations() const { return *m_int
erpolations; } | 26 const Vector<RefPtr<Interpolation> >& interpolations() const { return *m_int
erpolations; } |
| 27 void setInterpolations(PassOwnPtr<Vector<RefPtr<Interpolation> > > interpola
tions) { m_interpolations = interpolations; } | 27 void setInterpolations(PassOwnPtr<Vector<RefPtr<Interpolation> > > interpola
tions) { m_interpolations = interpolations; } |
| 28 | 28 |
| 29 Animation* animation() const { return m_animation; } | 29 Animation* animation() const { return m_animation; } |
| 30 unsigned sequenceNumber() const { return m_sequenceNumber; } | 30 unsigned sequenceNumber() const { return m_sequenceNumber; } |
| 31 Animation::Priority priority() const { return m_priority; } | 31 Animation::Priority priority() const { return m_priority; } |
| 32 | 32 |
| 33 void removeReplacedInterpolationsIfNeeded(const BitArray<numCSSProperties>&)
; | 33 void removeReplacedInterpolationsIfNeeded(const BitArray<numCSSProperties>&)
; |
| 34 | 34 |
| 35 void trace(Visitor*); | |
| 36 | |
| 37 private: | 35 private: |
| 38 SampledEffect(Animation*, PassOwnPtr<Vector<RefPtr<Interpolation> > >); | 36 SampledEffect(Animation*, PassOwnPtr<Vector<RefPtr<Interpolation> > >); |
| 39 | 37 |
| 40 RawPtr<Animation> m_animation; | 38 RawPtr<Animation> m_animation; |
| 41 #if !ENABLE(OILPAN) | 39 #if !ENABLE(OILPAN) |
| 42 RefPtr<AnimationPlayer> m_player; | 40 RefPtr<AnimationPlayer> m_player; |
| 43 #endif | 41 #endif |
| 44 OwnPtr<Vector<RefPtr<Interpolation> > > m_interpolations; | 42 OwnPtr<Vector<RefPtr<Interpolation> > > m_interpolations; |
| 45 const unsigned m_sequenceNumber; | 43 const unsigned m_sequenceNumber; |
| 46 Animation::Priority m_priority; | 44 Animation::Priority m_priority; |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 } // namespace blink | 47 } // namespace blink |
| 50 | 48 |
| 51 #endif | 49 #endif |
| OLD | NEW |