DescriptionFix jank caused by infobars appearing.
When the InfoBarContainer is first attached to the window,
View.initialAwakenScrollBars() is called on it. Even though the scrollbars
aren't visible, this schedules a delayed runnable to fade out the scrollbars
1.2 seconds later. This delayed runnable (View$ScrollabilityCache) then calls
View.invalidate() repeatedly as it fades out the (already invisible) scrollbar,
which pauses scroll updates and touch event handling for 10 to 15 frames.
This CL disables the scrollbars on the InfoBarContainer, except in the rare
case that the container is actually scrollable (i.e. when infobars take up the
entire screen). In that case, page jank doesn't matter since the user can't
even see the webpage!
BUG=407149
NOTRY=true
Committed: https://crrev.com/7cca8293771e68026262d05cd7c13620d8a79a3f
Cr-Commit-Position: refs/heads/master@{#295849}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|