DescriptionDefer scroll offset change notification to browser
When the main frame's scroll offset changes, we notify the browser
about this using ViewHostMsg_DidChangeScrollOffset. It turns out that
1) sending this message immediately makes the renderer main thread very
likely to become descheduled, and 2) this notification is only used
for hiding the mouse cursor when the page starts scrolling.
Since this signal isn't latency sensitive (and there are other
mechanisms for low latency scroll synchronization), we can defer sending
it until the current frame has been composited and we're otherwise idle.
Doing this reduces the average duration of ScrollableArea::
scrollPositionChanged on from 0.5 ms to 0.2 ms on a Nexus 5.
Trace before:
https://drive.google.com/open?id=0ByyxMXB38gLDRUY1VFJvZFFhVHc&authuser=1
Trace after:
https://drive.google.com/open?id=0ByyxMXB38gLDX1VwWmxvbTRBWWc&authuser=1
BUG=359566
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289898
Patch Set 1 #
Messages
Total messages: 11 (0 generated)
|