Increase the maximum resolution of conic gradients with hard stops
Categories
(Core :: Graphics: WebRender, enhancement, P3)
Tracking
()
| 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.
| Assignee | ||
Comment 1•5 years ago
|
||
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.
Comment 2•5 years ago
|
||
Hi Nicholas, is there something blocking this from landing?
| Assignee | ||
Comment 3•5 years ago
|
||
A bit of side-tracking and a missing test. I'll land it now.
Comment 5•5 years ago
|
||
| bugherder | ||
Description
•