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

Side by Side Diff: cc/animation/element_animations.h

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make NotifyAnimationTakeover pure virtual Created 4 years, 10 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 CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_
6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_
7 7
8 #include "base/containers/linked_list.h" 8 #include "base/containers/linked_list.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "cc/animation/animation_curve.h"
11 #include "cc/animation/animation_delegate.h" 13 #include "cc/animation/animation_delegate.h"
12 #include "cc/animation/layer_animation_controller.h" 14 #include "cc/animation/layer_animation_controller.h"
13 #include "cc/animation/layer_animation_value_provider.h" 15 #include "cc/animation/layer_animation_value_provider.h"
14 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
15 17
16 namespace gfx { 18 namespace gfx {
17 class ScrollOffset; 19 class ScrollOffset;
18 class Transform; 20 class Transform;
19 } 21 }
20 22
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // AnimationDelegate implementation 98 // AnimationDelegate implementation
97 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 99 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
98 TargetProperty::Type target_property, 100 TargetProperty::Type target_property,
99 int group) override; 101 int group) override;
100 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 102 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
101 TargetProperty::Type target_property, 103 TargetProperty::Type target_property,
102 int group) override; 104 int group) override;
103 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 105 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
104 TargetProperty::Type target_property, 106 TargetProperty::Type target_property,
105 int group) override; 107 int group) override;
108 void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
109 double animation_start_time,
110 scoped_ptr<AnimationCurve> curve) override;
106 111
107 // LayerAnimationValueProvider implementation. 112 // LayerAnimationValueProvider implementation.
108 gfx::ScrollOffset ScrollOffsetForAnimation() const override; 113 gfx::ScrollOffset ScrollOffsetForAnimation() const override;
109 114
110 scoped_ptr<PlayersList> players_list_; 115 scoped_ptr<PlayersList> players_list_;
111 116
112 class ValueObserver; 117 class ValueObserver;
113 scoped_ptr<ValueObserver> active_value_observer_; 118 scoped_ptr<ValueObserver> active_value_observer_;
114 scoped_ptr<ValueObserver> pending_value_observer_; 119 scoped_ptr<ValueObserver> pending_value_observer_;
115 120
116 // LAC is owned by ElementAnimations (1:1 relationship). 121 // LAC is owned by ElementAnimations (1:1 relationship).
117 scoped_refptr<LayerAnimationController> layer_animation_controller_; 122 scoped_refptr<LayerAnimationController> layer_animation_controller_;
118 AnimationHost* animation_host_; 123 AnimationHost* animation_host_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); 125 DISALLOW_COPY_AND_ASSIGN(ElementAnimations);
121 }; 126 };
122 127
123 } // namespace cc 128 } // namespace cc
124 129
125 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ 130 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698