| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 InvalidatableStyleInterpolation_h | 5 #ifndef InvalidatableStyleInterpolation_h |
| 6 #define InvalidatableStyleInterpolation_h | 6 #define InvalidatableStyleInterpolation_h |
| 7 | 7 |
| 8 #include "core/animation/AnimationType.h" | 8 #include "core/animation/AnimationType.h" |
| 9 #include "core/animation/AnimationValue.h" | 9 #include "core/animation/AnimationValue.h" |
| 10 #include "core/animation/PrimitiveInterpolation.h" | 10 #include "core/animation/PrimitiveInterpolation.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 InvalidatableStyleInterpolation( | 42 InvalidatableStyleInterpolation( |
| 43 const Vector<const AnimationType*>& animationTypes, | 43 const Vector<const AnimationType*>& animationTypes, |
| 44 const CSSPropertySpecificKeyframe& startKeyframe, | 44 const CSSPropertySpecificKeyframe& startKeyframe, |
| 45 const CSSPropertySpecificKeyframe& endKeyframe); | 45 const CSSPropertySpecificKeyframe& endKeyframe); |
| 46 | 46 |
| 47 void ensureValidInterpolation(const StyleResolverState&) const; | 47 void ensureValidInterpolation(const StyleResolverState&) const; |
| 48 bool isCacheValid(const StyleResolverState&) const; | 48 bool isCacheValid(const StyleResolverState&) const; |
| 49 bool maybeCachePairwiseConversion(const StyleResolverState*) const; | 49 bool maybeCachePairwiseConversion(const StyleResolverState*) const; |
| 50 PassOwnPtrWillBeRawPtr<FlipPrimitiveInterpolation::Side> convertSingleKeyfra
me(const CSSPropertySpecificKeyframe&, const StyleResolverState&) const; | 50 PassOwnPtrWillBeRawPtr<AnimationValue> convertSingleKeyframe(const CSSProper
tySpecificKeyframe&, const StyleResolverState&) const; |
| 51 | 51 |
| 52 const Vector<const AnimationType*>& m_animationTypes; | 52 const Vector<const AnimationType*>& m_animationTypes; |
| 53 const CSSPropertySpecificKeyframe& m_startKeyframe; | 53 const CSSPropertySpecificKeyframe& m_startKeyframe; |
| 54 const CSSPropertySpecificKeyframe& m_endKeyframe; | 54 const CSSPropertySpecificKeyframe& m_endKeyframe; |
| 55 double m_currentFraction; | 55 double m_currentFraction; |
| 56 mutable OwnPtrWillBeMember<PrimitiveInterpolation> m_cachedConversion; | 56 mutable OwnPtrWillBeMember<PrimitiveInterpolation> m_cachedConversion; |
| 57 mutable AnimationType::ConversionCheckers m_conversionCheckers; | 57 mutable AnimationType::ConversionCheckers m_conversionCheckers; |
| 58 mutable AnimationValue m_cachedValue; | 58 mutable OwnPtrWillBeRawPtr<AnimationValue> m_cachedValue; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 DEFINE_TYPE_CASTS(InvalidatableStyleInterpolation, Interpolation, value, value->
isInvalidatableStyleInterpolation(), value.isInvalidatableStyleInterpolation()); | 61 DEFINE_TYPE_CASTS(InvalidatableStyleInterpolation, Interpolation, value, value->
isInvalidatableStyleInterpolation(), value.isInvalidatableStyleInterpolation()); |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // InvalidatableStyleInterpolation_h | 65 #endif // InvalidatableStyleInterpolation_h |
| OLD | NEW |