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

Unified Diff: cc/animation/animation_player.h

Issue 2261113002: CC Animation: Introduce some dirty flags to optimize PushProperties on commit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not change SetNeedsCommit invalidation, leave it as-is. 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_perftest.cc ('k') | cc/animation/animation_player.cc » ('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 5c4c58e94db4c7fdf3ed8f220b668a02b29b8fe7..1afdbfb522a8d2ed1353a1eaa78151544e9f1364 100644
--- a/cc/animation/animation_player.h
+++ b/cc/animation/animation_player.h
@@ -82,6 +82,7 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
void NotifyAnimationAborted(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
int group);
+ void NotifyAnimationWaitingForDeletion();
void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
TargetProperty::Type target_property,
double animation_start_time,
@@ -92,6 +93,9 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
return !animations_.empty();
}
+ bool needs_push_properties() const { return needs_push_properties_; }
+ void SetNeedsPushProperties();
+
private:
friend class base::RefCounted<AnimationPlayer>;
@@ -119,6 +123,7 @@ class CC_EXPORT AnimationPlayer : public base::RefCounted<AnimationPlayer> {
int id_;
ElementId element_id_;
+ bool needs_push_properties_;
DISALLOW_COPY_AND_ASSIGN(AnimationPlayer);
};
« no previous file with comments | « cc/animation/animation_host_perftest.cc ('k') | cc/animation/animation_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698