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

Unified Diff: cc/animation/scroll_offset_animations_impl.h

Issue 2863103002: Reduce composited smooth scroll latency by a frame (also fixes latency UMAs). (Closed)
Patch Set: Cleanup. Created 3 years, 7 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_host_unittest.cc ('k') | cc/animation/scroll_offset_animations_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e6d402f925c36dd9490903c39d83f5e77df8da02..876e3b07bfe318ec4380a89ca72232de3cc6c4ad 100644
--- a/cc/animation/scroll_offset_animations_impl.h
+++ b/cc/animation/scroll_offset_animations_impl.h
@@ -31,10 +31,14 @@ class CC_ANIMATION_EXPORT ScrollOffsetAnimationsImpl
~ScrollOffsetAnimationsImpl() override;
+ // |delayed_by| shrinks the duration of the
+ // animation. |animation_start_offset| causes us to start the animation
+ // partway through.
void ScrollAnimationCreate(ElementId element_id,
const gfx::ScrollOffset& target_offset,
const gfx::ScrollOffset& current_offset,
- base::TimeDelta delayed_by);
+ base::TimeDelta delayed_by,
+ base::TimeDelta animation_start_offset);
bool ScrollAnimationUpdateTarget(ElementId element_id,
const gfx::Vector2dF& scroll_delta,
« no previous file with comments | « cc/animation/animation_host_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