| 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 Interpolation_h | 5 #ifndef Interpolation_h |
| 6 #define Interpolation_h | 6 #define Interpolation_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolableValue.h" | 8 #include "sky/engine/core/animation/InterpolableValue.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "sky/engine/platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class Interpolation : public RefCounted<Interpolation> { | 13 class Interpolation : public RefCounted<Interpolation> { |
| 14 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Interpolation); | 14 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Interpolation); |
| 15 public: | 15 public: |
| 16 static PassRefPtr<Interpolation> create(PassOwnPtr<InterpolableValue> start,
PassOwnPtr<InterpolableValue> end) | 16 static PassRefPtr<Interpolation> create(PassOwnPtr<InterpolableValue> start,
PassOwnPtr<InterpolableValue> end) |
| 17 { | 17 { |
| 18 return adoptRef(new Interpolation(start, end)); | 18 return adoptRef(new Interpolation(start, end)); |
| 19 } | 19 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 private: | 36 private: |
| 37 InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.g
et(); } | 37 InterpolableValue* getCachedValueForTesting() const { return m_cachedValue.g
et(); } |
| 38 | 38 |
| 39 friend class AnimationInterpolableValueTest; | 39 friend class AnimationInterpolableValueTest; |
| 40 friend class AnimationInterpolationEffectTest; | 40 friend class AnimationInterpolationEffectTest; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 } | 43 } |
| 44 | 44 |
| 45 #endif | 45 #endif |
| OLD | NEW |