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

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

Issue 2286233002: Replaced PassRefPtr copies with moves in Source/core/animation. (Closed)
Patch Set: Created 4 years, 3 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 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 InterpolationEffect_h 5 #ifndef InterpolationEffect_h
6 #define InterpolationEffect_h 6 #define InterpolationEffect_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/animation/Interpolation.h" 9 #include "core/animation/Interpolation.h"
10 #include "core/animation/Keyframe.h" 10 #include "core/animation/Keyframe.h"
(...skipping 17 matching lines...) Expand all
28 void clear() 28 void clear()
29 { 29 {
30 m_isPopulated = false; 30 m_isPopulated = false;
31 m_interpolations.clear(); 31 m_interpolations.clear();
32 } 32 }
33 33
34 void getActiveInterpolations(double fraction, double iterationDuration, Vect or<RefPtr<Interpolation>>&) const; 34 void getActiveInterpolations(double fraction, double iterationDuration, Vect or<RefPtr<Interpolation>>&) const;
35 35
36 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti mingFunction> easing, double start, double end, double applyFrom, double applyTo ) 36 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti mingFunction> easing, double start, double end, double applyFrom, double applyTo )
37 { 37 {
38 m_interpolations.append(InterpolationRecord(interpolation, easing, start , end, applyFrom, applyTo)); 38 m_interpolations.append(InterpolationRecord(std::move(interpolation), st d::move(easing), start, end, applyFrom, applyTo));
39 } 39 }
40 40
41 void addInterpolationsFromKeyframes(PropertyHandle, const Keyframe::Property SpecificKeyframe& keyframeA, const Keyframe::PropertySpecificKeyframe& keyframeB , double applyFrom, double applyTo); 41 void addInterpolationsFromKeyframes(PropertyHandle, const Keyframe::Property SpecificKeyframe& keyframeA, const Keyframe::PropertySpecificKeyframe& keyframeB , double applyFrom, double applyTo);
42 42
43 private: 43 private:
44 struct InterpolationRecord { 44 struct InterpolationRecord {
45 InterpolationRecord(PassRefPtr<Interpolation> interpolation, PassRefPtr< TimingFunction> easing, double start, double end, double applyFrom, double apply To) 45 InterpolationRecord(PassRefPtr<Interpolation> interpolation, PassRefPtr< TimingFunction> easing, double start, double end, double applyFrom, double apply To)
46 : m_interpolation(interpolation) 46 : m_interpolation(interpolation)
47 , m_easing(easing) 47 , m_easing(easing)
48 , m_start(start) 48 , m_start(start)
(...skipping 10 matching lines...) Expand all
59 double m_applyTo; 59 double m_applyTo;
60 }; 60 };
61 61
62 bool m_isPopulated; 62 bool m_isPopulated;
63 Vector<InterpolationRecord> m_interpolations; 63 Vector<InterpolationRecord> m_interpolations;
64 }; 64 };
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // InterpolationEffect_h 68 #endif // InterpolationEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698