Closed Bug 1678493 Opened 4 years ago Closed 4 years ago

Restrict SwCompositor compositing to the dirty rect

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

Details

Attachments

(4 files)

SwCompositor currently composites the entire area of the framebuffer every frame, regardless of what dirty rect was provided.

We should clip drawing to the dirty area, and do less work.

This combination is never used, and adds complexity to support.

Depends on D97705

The composite code uses the size of the dest rect to determine scaling, and we don't want this to be affected by the clip.

Depends on D97706

Attachment #9189046 - Attachment description: Bug 1678493 - Use the cliiped dest area when computing bands so that they're evenly spread across the pixels actually drawn. r?lsalzman → Bug 1678493 - Use the clipped dest area when computing bands so that they're evenly spread across the pixels actually drawn. r?lsalzman
Pushed by mwoodrow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/94e770a1e904
Intersect the dirty rect with the compositor surface clip rect in SwCompositor. r=lsalzman
https://hg.mozilla.org/integration/autoland/rev/9cec7f7add10
Don't support having both a native gl context and a native compositor in SwCompositor. r=lsalzman
https://hg.mozilla.org/integration/autoland/rev/f8a0ebaa5e8f
Pass the SwCompositor clip rect into the inner Composite code rather than intersecting if beforehand. r=lsalzman
https://hg.mozilla.org/integration/autoland/rev/b7aedb850662
Use the clipped dest area when computing bands so that they're evenly spread across the pixels actually drawn. r=lsalzman
Pushed by btara@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2792eb7eef84
lint fix on composite.h CLOSED TREE
Regressions: 1679215
Regressions: 1680599
Regressions: 1683496
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: