Open Bug 1688304 Opened 5 years ago Updated 3 years ago

Give WebRender its own display port (which can be moved asynchronously) and make the main thread displayport larger

Categories

(Core :: Web Painting, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mstange, Unassigned)

References

(Blocks 1 open bug)

Details

In Firefox, long-running main thread work can cause more checkerboarding than in Chrome: If you APZ-scroll by more than 2 or 3 screenfuls in Firefox while the main thread is blocked, the screen will be blank, because the compositor has to wait for the main thread to submit a new display list with the content at the new position.
I think in Chrome, the compositor has access to a much larger display list, and can rasterize additional content within the bounds of that display list as it sees fit. This allows them to avoid checkerboarding in more cases, at the cost of submitting a larger display list initially.

Bug 1688140 is one example of the checkerboarding problem.

I think we could do something similar, but this is a somewhat long-term project: Our main thread could build a display list for a very large display port, and then WebRender could have its own smaller display port that it moves around during asynchronous scrolling, and it's WR's job to rasterize the necessary content and apply that smaller display port clip to the scrolled contents.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.