Closed Bug 1591527 Opened 5 years ago Closed 5 years ago

Integrate partial repainting with OS compositor surfaces

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mstange, Assigned: gw)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

The current implementation of OS compositor surfaces always repaints the entire surface if anything changes in it.
Instead, we should give webrender::compositor::bind an update rect parameter so that we can save the overhead from touching unchanged pixels.

Assignee: nobody → gwatson

Maybe use a region instead of a rectangle? Just as side note.

This passes the existing dirty rect for a picture cache update
through the native compositor interface, allowing compositors
to only update a sub-rect of a tile.

Also update the example to pass dirty rect to DirectComposition,
and add debug drawing for compositor redraw region.

Pushed by gwatson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da9cbdbdfcbf Integrate partial repainting with OS compositor surfaces. r=kvark,mstange
Blocks: 1592150
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: