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

Side by Side Diff: sky/engine/core/animation/SampledEffect.h

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_CORE_ANIMATION_SAMPLEDEFFECT_H_
6 #define SKY_ENGINE_CORE_ANIMATION_SAMPLEDEFFECT_H_
7
8 #include "sky/engine/core/animation/Animation.h"
9 #include "sky/engine/core/animation/AnimationPlayer.h"
10 #include "sky/engine/core/animation/Interpolation.h"
11 #include "sky/engine/wtf/BitArray.h"
12 #include "sky/engine/wtf/Vector.h"
13
14 namespace blink {
15
16 class SampledEffect {
17 public:
18 static PassOwnPtr<SampledEffect> create(Animation* animation, PassOwnPtr<Vec tor<RefPtr<Interpolation> > > interpolations)
19 {
20 return adoptPtr(new SampledEffect(animation, interpolations));
21 }
22
23 bool canChange() const;
24 void clear();
25
26 const Vector<RefPtr<Interpolation> >& interpolations() const { return *m_int erpolations; }
27 void setInterpolations(PassOwnPtr<Vector<RefPtr<Interpolation> > > interpola tions) { m_interpolations = interpolations; }
28
29 Animation* animation() const { return m_animation; }
30 unsigned sequenceNumber() const { return m_sequenceNumber; }
31 Animation::Priority priority() const { return m_priority; }
32
33 void removeReplacedInterpolationsIfNeeded(const BitArray<numCSSProperties>&) ;
34
35 private:
36 SampledEffect(Animation*, PassOwnPtr<Vector<RefPtr<Interpolation> > >);
37
38 RawPtr<Animation> m_animation;
39 #if !ENABLE(OILPAN)
40 RefPtr<AnimationPlayer> m_player;
41 #endif
42 OwnPtr<Vector<RefPtr<Interpolation> > > m_interpolations;
43 const unsigned m_sequenceNumber;
44 Animation::Priority m_priority;
45 };
46
47 } // namespace blink
48
49 #endif // SKY_ENGINE_CORE_ANIMATION_SAMPLEDEFFECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/animation/PendingAnimations.cpp ('k') | sky/engine/core/animation/SampledEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698