Closed Bug 1728569 Opened 5 years ago Closed 5 years ago

Increase the maximum resolution of conic gradients with hard stops

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: nical, Assigned: nical)

References

Details

Attachments

(1 external file)

Right now the max resolution is 1024 which is visually fine if the gradient is smooth but can cause very visible aliasing artifacts with very large gradients. The best way to address this would be to render very large gradients as brushes as we did before caching but it would be easier/cleaner to do after refactoring out the separation between brush shaders and cached shaders.
In the mean time, increasing the maximum resolution is only a half solution but significantly improves the visual quality in the bad cases. Very large conic gradients are uncommon enough that it should let us focus on other things.

Right now the max resolution is 1024 which is visually fine if the gradient is smooth but can cause very visible aliasing artifacts with hard stops in very large gradients. The best way to address this would be to render very large gradients as brushes as we did before caching but involves more work and code to maintain.
In the mean time, increasing the maximum resolution is only a half solution but significantly improves the visual quality in the bad cases. Very large conic gradients are uncommon enough that it should let us focus on higher priority work.

Hi Nicholas, is there something blocking this from landing?

Flags: needinfo?(nical.bugzilla)

A bit of side-tracking and a missing test. I'll land it now.

Flags: needinfo?(nical.bugzilla)
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c4b28b643e6 Increase the the maximum resolution of cached conic gradients with hard stops. r=gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: