Closed Bug 1539048 Opened 5 years ago Closed 5 years ago

Support segment rendering for pictures in WR

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: gw, Assigned: gw)

References

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → gwatson

On some low end GPUs, clip mask rendering can be a significant
GPU cost. One way to reduce this is to support segment rendering
on more primitive types, to reduce the size of clip masks.

This patch adds support for pictures that have clip masks and/or
preserve-3d contexts to take part in segment rendering. This
can significantly reduce the number of fragments that must be
drawn into a clip mask for off-screen picture surfaces.

In future, WR can take advantage of segment rendering to use
clip mask shaders that handle only a single corner at a time.
This will be a further significant performance win to clip mask
render time.

Priority: -- → P3
Pushed by gwatson@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d0221689e8e9
Support segment rendering for pictures in WR. r=kvark
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Depends on: 1540200
No longer depends on: 1540200
Regressions: 1540200
Regressions: 1671784
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: