Descriptioncc: Add predictive pre-painting.
When scrolling quickly and with painting just barely able to keep up,
it's possible get into a bad state where we always do visible
painting and never get a chance to paint ahead of the fold. This
shows up as flickering at the bottom of the page.
This patch has two parts. First, it uses a scroll prediction when
choosing what to paint (both for 'visible' and off-screen painting).
Second, it adds a very simple scroll predictor based on the change
in the visibleContentRect. The second part should almost certainly
be improved (use impl-thread scroll/animation directions/velocities)
but this provides an initial estimate that helps in the most important
case (basic scrolling of big layers).
This doesn't actually change the priorities of textures in the scroll
direction (but changing the visible rect does this partially).
This is not an issue currently since the what-to-paint logic doesn't
strictly adhere to priority order.
BUG=121957
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163665
Patch Set 1 : Rebase. #Patch Set 2 : Rebase + fix test #
Total comments: 5
Patch Set 3 : Add constants. #
Messages
Total messages: 10 (0 generated)
|