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

Unified Diff: cc/animation/scroll_offset_animations.cc

Issue 2291463003: Revert "CC Animation: Introduce some dirty flags to optimize PushProperties on commit" (Closed)
Patch Set: Created 4 years, 4 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/element_animations_unittest.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/scroll_offset_animations.cc
diff --git a/cc/animation/scroll_offset_animations.cc b/cc/animation/scroll_offset_animations.cc
index c70abbc9299cc28f73cd4031a94b39fe3c1c6ca1..04cf954c6f27ad286dafc83fb3f076a9c81c338c 100644
--- a/cc/animation/scroll_offset_animations.cc
+++ b/cc/animation/scroll_offset_animations.cc
@@ -33,7 +33,7 @@ void ScrollOffsetAnimations::AddAdjustmentUpdate(ElementId element_id,
ScrollOffsetAnimationUpdate update = GetUpdateForElementId(element_id);
update.adjustment_ += adjustment;
element_to_update_map_[element_id] = update;
- animation_host_->SetNeedsPushProperties();
+ animation_host_->SetNeedsCommit();
}
void ScrollOffsetAnimations::AddTakeoverUpdate(ElementId element_id) {
@@ -41,7 +41,7 @@ void ScrollOffsetAnimations::AddTakeoverUpdate(ElementId element_id) {
ScrollOffsetAnimationUpdate update = GetUpdateForElementId(element_id);
update.takeover_ = true;
element_to_update_map_[element_id] = update;
- animation_host_->SetNeedsPushProperties();
+ animation_host_->SetNeedsCommit();
}
bool ScrollOffsetAnimations::HasUpdatesForTesting() const {
« no previous file with comments | « cc/animation/element_animations_unittest.cc ('k') | cc/test/animation_timelines_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698