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

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

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 months 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/Interpolation.h" 8 #include "core/animation/Interpolation.h"
9 #include "core/animation/InterpolationType.h" 9 #include "core/animation/InterpolationType.h"
10 #include "core/animation/InterpolationTypesMap.h" 10 #include "core/animation/InterpolationTypesMap.h"
(...skipping 25 matching lines...) Expand all
36 virtual bool isInvalidatableInterpolation() const { return true; } 36 virtual bool isInvalidatableInterpolation() const { return true; }
37 37
38 private: 38 private:
39 InvalidatableInterpolation(const PropertyHandle& property, 39 InvalidatableInterpolation(const PropertyHandle& property,
40 PassRefPtr<PropertySpecificKeyframe> startKeyframe, 40 PassRefPtr<PropertySpecificKeyframe> startKeyframe,
41 PassRefPtr<PropertySpecificKeyframe> endKeyframe) 41 PassRefPtr<PropertySpecificKeyframe> endKeyframe)
42 : Interpolation(), 42 : Interpolation(),
43 m_property(property), 43 m_property(property),
44 m_interpolationTypes(nullptr), 44 m_interpolationTypes(nullptr),
45 m_interpolationTypesVersion(0), 45 m_interpolationTypesVersion(0),
46 m_startKeyframe(startKeyframe), 46 m_startKeyframe(std::move(startKeyframe)),
47 m_endKeyframe(endKeyframe), 47 m_endKeyframe(std::move(endKeyframe)),
48 m_currentFraction(std::numeric_limits<double>::quiet_NaN()), 48 m_currentFraction(std::numeric_limits<double>::quiet_NaN()),
49 m_isConversionCached(false) {} 49 m_isConversionCached(false) {}
50 50
51 using ConversionCheckers = InterpolationType::ConversionCheckers; 51 using ConversionCheckers = InterpolationType::ConversionCheckers;
52 52
53 std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue( 53 std::unique_ptr<TypedInterpolationValue> maybeConvertUnderlyingValue(
54 const InterpolationEnvironment&) const; 54 const InterpolationEnvironment&) const;
55 const TypedInterpolationValue* ensureValidConversion( 55 const TypedInterpolationValue* ensureValidConversion(
56 const InterpolationEnvironment&, 56 const InterpolationEnvironment&,
57 const UnderlyingValueOwner&) const; 57 const UnderlyingValueOwner&) const;
(...skipping 28 matching lines...) Expand all
86 86
87 DEFINE_TYPE_CASTS(InvalidatableInterpolation, 87 DEFINE_TYPE_CASTS(InvalidatableInterpolation,
88 Interpolation, 88 Interpolation,
89 value, 89 value,
90 value->isInvalidatableInterpolation(), 90 value->isInvalidatableInterpolation(),
91 value.isInvalidatableInterpolation()); 91 value.isInvalidatableInterpolation());
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // InvalidatableInterpolation_h 95 #endif // InvalidatableInterpolation_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/InterpolationValue.h ('k') | third_party/WebKit/Source/core/animation/Keyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698