Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: third_party/WebKit/Source/core/animation/InvalidatableInterpolation.h

Issue 1428513003: Pass InterpolationEnvironment as a reference to InterpolationType conversion functions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_svgAttributeReference
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 InvalidatableInterpolation_h 5 #ifndef InvalidatableInterpolation_h
6 #define InvalidatableInterpolation_h 6 #define InvalidatableInterpolation_h
7 7
8 #include "core/animation/InterpolationType.h" 8 #include "core/animation/InterpolationType.h"
9 #include "core/animation/InterpolationValue.h" 9 #include "core/animation/InterpolationValue.h"
10 #include "core/animation/PrimitiveInterpolation.h" 10 #include "core/animation/PrimitiveInterpolation.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 , m_endKeyframe(&endKeyframe) 43 , m_endKeyframe(&endKeyframe)
44 , m_currentFraction(std::numeric_limits<double>::quiet_NaN()) 44 , m_currentFraction(std::numeric_limits<double>::quiet_NaN())
45 , m_isCached(false) 45 , m_isCached(false)
46 { } 46 { }
47 47
48 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const Interpolati onEnvironment&) const; 48 PassOwnPtr<InterpolationValue> maybeConvertUnderlyingValue(const Interpolati onEnvironment&) const;
49 const InterpolationValue* ensureValidInterpolation(const InterpolationEnviro nment&, const UnderlyingValue&) const; 49 const InterpolationValue* ensureValidInterpolation(const InterpolationEnviro nment&, const UnderlyingValue&) const;
50 void clearCache() const; 50 void clearCache() const;
51 bool isCacheValid(const InterpolationEnvironment&, const UnderlyingValue&) c onst; 51 bool isCacheValid(const InterpolationEnvironment&, const UnderlyingValue&) c onst;
52 bool isNeutralKeyframeActive() const; 52 bool isNeutralKeyframeActive() const;
53 PassOwnPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const Interp olationEnvironment*, const UnderlyingValue&) const; 53 PassOwnPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(const Interp olationEnvironment&, const UnderlyingValue&) const;
54 PassOwnPtr<InterpolationValue> convertSingleKeyframe(const PropertySpecificK eyframe&, const InterpolationEnvironment&, const UnderlyingValue&) const; 54 PassOwnPtr<InterpolationValue> convertSingleKeyframe(const PropertySpecificK eyframe&, const InterpolationEnvironment&, const UnderlyingValue&) const;
55 void setFlagIfInheritUsed(InterpolationEnvironment&) const; 55 void setFlagIfInheritUsed(InterpolationEnvironment&) const;
56 double underlyingFraction() const; 56 double underlyingFraction() const;
57 57
58 const Vector<const InterpolationType*>& m_interpolationTypes; 58 const Vector<const InterpolationType*>& m_interpolationTypes;
59 const PropertySpecificKeyframe* m_startKeyframe; 59 const PropertySpecificKeyframe* m_startKeyframe;
60 const PropertySpecificKeyframe* m_endKeyframe; 60 const PropertySpecificKeyframe* m_endKeyframe;
61 double m_currentFraction; 61 double m_currentFraction;
62 mutable bool m_isCached; 62 mutable bool m_isCached;
63 mutable OwnPtr<PrimitiveInterpolation> m_cachedPairConversion; 63 mutable OwnPtr<PrimitiveInterpolation> m_cachedPairConversion;
64 mutable InterpolationType::ConversionCheckers m_conversionCheckers; 64 mutable InterpolationType::ConversionCheckers m_conversionCheckers;
65 mutable OwnPtr<InterpolationValue> m_cachedValue; 65 mutable OwnPtr<InterpolationValue> m_cachedValue;
66 }; 66 };
67 67
68 DEFINE_TYPE_CASTS(InvalidatableInterpolation, Interpolation, value, value->isInv alidatableInterpolation(), value.isInvalidatableInterpolation()); 68 DEFINE_TYPE_CASTS(InvalidatableInterpolation, Interpolation, value, value->isInv alidatableInterpolation(), value.isInvalidatableInterpolation());
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // InvalidatableInterpolation_h 72 #endif // InvalidatableInterpolation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698