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

Unified Diff: cc/animation/animation_player.h

Issue 2322693003: CC Animation: Rename has_any_animation and make implementattion out-of-line (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_player.h
diff --git a/cc/animation/animation_player.h b/cc/animation/animation_player.h
index 1afdbfb522a8d2ed1353a1eaa78151544e9f1364..b20e0be217688723727f202a70a0ad64af268135 100644
--- a/cc/animation/animation_player.h
+++ b/cc/animation/animation_player.h
@@ -88,10 +88,8 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
double animation_start_time,
std::unique_ptr<AnimationCurve> curve);
- // Whether this player has animations waiting to get sent to ElementAnimations
- bool has_pending_animations_for_testing() const {
- return !animations_.empty();
- }
+ // Returns true if there are any animations at all to process.
+ bool has_any_animation() const { return !animations_.empty(); }
bool needs_push_properties() const { return needs_push_properties_; }
void SetNeedsPushProperties();
« no previous file with comments | « cc/animation/animation_host.cc ('k') | cc/animation/element_animations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698