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

Unified Diff: cc/animation/scroll_offset_animation_curve.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: fix constant 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/scroll_offset_animation_curve.h
diff --git a/cc/animation/scroll_offset_animation_curve.h b/cc/animation/scroll_offset_animation_curve.h
index 7f9ea55c53ebc2a033382d3fcb0805ad77fee717..beb9bbfa4363de4edf2731519b7bee862307ae0a 100644
--- a/cc/animation/scroll_offset_animation_curve.h
+++ b/cc/animation/scroll_offset_animation_curve.h
@@ -27,7 +27,8 @@ class CC_EXPORT ScrollOffsetAnimationCurve : public AnimationCurve {
~ScrollOffsetAnimationCurve() override;
- void SetInitialValue(const gfx::ScrollOffset& initial_value);
+ void SetInitialValue(const gfx::ScrollOffset& initial_value,
+ base::TimeDelta jank_adjustment = base::TimeDelta());
bool HasSetInitialValue() const;
gfx::ScrollOffset GetValue(base::TimeDelta t) const;
gfx::ScrollOffset target_value() const { return target_value_; }

Powered by Google App Engine
This is Rietveld 408576698