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

Unified Diff: cc/animation/animation_host.cc

Issue 2040543002: Take MT jank into account when animating the scroll offset on CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: cc/animation/animation_host.cc
diff --git a/cc/animation/animation_host.cc b/cc/animation/animation_host.cc
index f03ae70a2d989a99ed30b9d67da7e27c0ea04e05..7004db0cf6b2c4d4df40302621917c45acd3a355 100644
--- a/cc/animation/animation_host.cc
+++ b/cc/animation/animation_host.cc
@@ -503,6 +503,14 @@ bool AnimationHost::ImplOnlyScrollAnimationUpdateTarget(
element_id, scroll_delta, max_scroll_offset, frame_monotonic_time);
}
+void AnimationHost::ImplOnlyScrollAnimationAdjustDuration(
+ ElementId element_id,
+ base::TimeDelta adjustment) {
+ DCHECK(scroll_offset_animations_impl_);
+ scroll_offset_animations_impl_->ScrollAnimationAdjustDuration(element_id,
+ adjustment);
+}
+
ScrollOffsetAnimations& AnimationHost::scroll_offset_animations() const {
DCHECK(scroll_offset_animations_);
return *scroll_offset_animations_.get();

Powered by Google App Engine
This is Rietveld 408576698