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

Unified Diff: cc/animation/animation_timeline.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_player_unittest.cc ('k') | cc/animation/animation_timeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_timeline.h
diff --git a/cc/animation/animation_timeline.h b/cc/animation/animation_timeline.h
index 48dd05942d6a7a4bd12dab71a3488957750b351b..992ba29e2f0e2cf8eff1bfe42890e6d0def3e3a9 100644
--- a/cc/animation/animation_timeline.h
+++ b/cc/animation/animation_timeline.h
@@ -46,6 +46,9 @@ class CC_EXPORT AnimationTimeline : public base::RefCounted<AnimationTimeline> {
AnimationPlayer* GetPlayerById(int player_id) const;
+ void SetNeedsPushProperties();
+ bool needs_push_properties() const { return needs_push_properties_; }
+
private:
friend class base::RefCounted<AnimationTimeline>;
@@ -64,6 +67,7 @@ class CC_EXPORT AnimationTimeline : public base::RefCounted<AnimationTimeline> {
int id_;
AnimationHost* animation_host_;
+ bool needs_push_properties_;
// Impl-only AnimationTimeline has no main thread instance and lives on
// it's own.
« no previous file with comments | « cc/animation/animation_player_unittest.cc ('k') | cc/animation/animation_timeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698