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

Unified Diff: cc/animation/scroll_offset_animations_impl.h

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: add test + apply suggested improvement 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
Index: cc/animation/scroll_offset_animations_impl.h
diff --git a/cc/animation/scroll_offset_animations_impl.h b/cc/animation/scroll_offset_animations_impl.h
index 3ae441995a62636d0f90e641549ba9ec8b328d5e..4db6005745701398fdaa122136b531f223f387b2 100644
--- a/cc/animation/scroll_offset_animations_impl.h
+++ b/cc/animation/scroll_offset_animations_impl.h
@@ -33,12 +33,14 @@ class CC_EXPORT ScrollOffsetAnimationsImpl : public AnimationDelegate {
void ScrollAnimationCreate(ElementId element_id,
const gfx::ScrollOffset& target_offset,
- const gfx::ScrollOffset& current_offset);
+ const gfx::ScrollOffset& current_offset,
+ base::TimeDelta delayed_by);
bool ScrollAnimationUpdateTarget(ElementId element_id,
const gfx::Vector2dF& scroll_delta,
const gfx::ScrollOffset& max_scroll_offset,
- base::TimeTicks frame_monotonic_time);
+ base::TimeTicks frame_monotonic_time,
+ base::TimeDelta delayed_by);
// Aborts the currently running scroll offset animation on an element and
// starts a new one offsetted by adjustment.
« no previous file with comments | « cc/animation/scroll_offset_animation_curve_unittest.cc ('k') | cc/animation/scroll_offset_animations_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698