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

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

Issue 2757453003: Purge impl-only animations awaiting deletion in AnimationPlayer::UpdateState. (Closed)
Patch Set: Created 3 years, 9 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
« 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/macros.h" 10 #include "base/macros.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void RegisterPlayer(); 181 void RegisterPlayer();
182 void UnregisterPlayer(); 182 void UnregisterPlayer();
183 183
184 void BindElementAnimations(); 184 void BindElementAnimations();
185 void UnbindElementAnimations(); 185 void UnbindElementAnimations();
186 186
187 void AnimationAdded(); 187 void AnimationAdded();
188 188
189 void MarkAbortedAnimationsForDeletion( 189 void MarkAbortedAnimationsForDeletion(
190 AnimationPlayer* animation_player_impl) const; 190 AnimationPlayer* animation_player_impl) const;
191 void PurgeAnimationsMarkedForDeletion(); 191 void PurgeAnimationsMarkedForDeletion(bool impl_only);
192 void PushNewAnimationsToImplThread( 192 void PushNewAnimationsToImplThread(
193 AnimationPlayer* animation_player_impl) const; 193 AnimationPlayer* animation_player_impl) const;
194 void RemoveAnimationsCompletedOnMainThread( 194 void RemoveAnimationsCompletedOnMainThread(
195 AnimationPlayer* animation_player_impl) const; 195 AnimationPlayer* animation_player_impl) const;
196 void PushPropertiesToImplThread(AnimationPlayer* animation_player_impl); 196 void PushPropertiesToImplThread(AnimationPlayer* animation_player_impl);
197 197
198 using Animations = std::vector<std::unique_ptr<Animation>>; 198 using Animations = std::vector<std::unique_ptr<Animation>>;
199 Animations animations_; 199 Animations animations_;
200 200
201 AnimationHost* animation_host_; 201 AnimationHost* animation_host_;
(...skipping 15 matching lines...) Expand all
217 bool is_ticking_; 217 bool is_ticking_;
218 218
219 bool scroll_offset_animation_was_interrupted_; 219 bool scroll_offset_animation_was_interrupted_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer); 221 DISALLOW_COPY_AND_ASSIGN(AnimationPlayer);
222 }; 222 };
223 223
224 } // namespace cc 224 } // namespace cc
225 225
226 #endif // CC_ANIMATION_ANIMATION_PLAYER_H_ 226 #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