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

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

Issue 1548883002: Revert of Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | cc/animation/animation_player.cc » ('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 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_ANIMATION_PLAYER_H_ 5 #ifndef CC_ANIMATION_ANIMATION_PLAYER_H_
6 #define CC_ANIMATION_ANIMATION_PLAYER_H_ 6 #define CC_ANIMATION_ANIMATION_PLAYER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/linked_list.h" 10 #include "base/containers/linked_list.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void set_layer_animation_delegate(AnimationDelegate* delegate) { 60 void set_layer_animation_delegate(AnimationDelegate* delegate) {
61 layer_animation_delegate_ = delegate; 61 layer_animation_delegate_ = delegate;
62 } 62 }
63 63
64 void AttachLayer(int layer_id); 64 void AttachLayer(int layer_id);
65 void DetachLayer(); 65 void DetachLayer();
66 66
67 void AddAnimation(scoped_ptr<Animation> animation); 67 void AddAnimation(scoped_ptr<Animation> animation);
68 void PauseAnimation(int animation_id, double time_offset); 68 void PauseAnimation(int animation_id, double time_offset);
69 void RemoveAnimation(int animation_id); 69 void RemoveAnimation(int animation_id);
70 void AbortAnimation(int animation_id);
71 70
72 void PushPropertiesTo(AnimationPlayer* player_impl); 71 void PushPropertiesTo(AnimationPlayer* player_impl);
73 72
74 // AnimationDelegate routing. 73 // AnimationDelegate routing.
75 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 74 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
76 Animation::TargetProperty target_property, 75 Animation::TargetProperty target_property,
77 int group); 76 int group);
78 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 77 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
79 Animation::TargetProperty target_property, 78 Animation::TargetProperty target_property,
80 int group); 79 int group);
(...skipping 25 matching lines...) Expand all
106 105
107 int id_; 106 int id_;
108 int layer_id_; 107 int layer_id_;
109 108
110 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer); 109 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer);
111 }; 110 };
112 111
113 } // namespace cc 112 } // namespace cc
114 113
115 #endif // CC_ANIMATION_ANIMATION_PLAYER_H_ 114 #endif // CC_ANIMATION_ANIMATION_PLAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698