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

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

Issue 732153003: Update a result vector when sampling animation effects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/animation/InertAnimation.cpp ('k') | Source/core/animation/InterpolationEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/animation/Interpolation.h" 8 #include "core/animation/Interpolation.h"
9 #include "platform/animation/TimingFunction.h" 9 #include "platform/animation/TimingFunction.h"
10 #include "wtf/PassOwnPtr.h" 10 #include "wtf/PassOwnPtr.h"
11 #include "wtf/RefCounted.h" 11 #include "wtf/RefCounted.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class InterpolationEffect : public RefCountedWillBeGarbageCollected<Interpolatio nEffect> { 15 class InterpolationEffect : public RefCountedWillBeGarbageCollected<Interpolatio nEffect> {
16 public: 16 public:
17 static PassRefPtrWillBeRawPtr<InterpolationEffect> create() { return adoptRe fWillBeNoop(new InterpolationEffect()); } 17 static PassRefPtrWillBeRawPtr<InterpolationEffect> create()
18 {
19 return adoptRefWillBeNoop(new InterpolationEffect());
20 }
18 21
19 PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation> > > getActiveInterpolations(double fraction, double iterationDuration) const; 22 void getActiveInterpolations(double fraction, double iterationDuration, OwnP trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const;
20 23
21 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo) 24 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo)
22 { 25 {
23 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo)); 26 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo));
24 } 27 }
25 28
26 void trace(Visitor*); 29 void trace(Visitor*);
27 30
28 private: 31 private:
29 InterpolationEffect() 32 InterpolationEffect()
(...skipping 27 matching lines...) Expand all
57 { 60 {
58 } 61 }
59 }; 62 };
60 63
61 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; 64 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations;
62 }; 65 };
63 66
64 } 67 }
65 68
66 #endif 69 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/InertAnimation.cpp ('k') | Source/core/animation/InterpolationEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698