Closed Bug 1981304 Opened 1 year ago Closed 1 year ago

More eagerly optimize linear gradient when dithering is enabled

Categories

(Core :: Graphics: WebRender, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When LinearGradient enables dithering, fast path is used only when color is same between 2 stops in LinearGradientTemplate::from().

By changing optimize_linear_gradient(), it is possible to increase it.

When there is no color change between 2 stops, dithering could be disabled.

Blocks: 1980565
Attachment #9505368 - Attachment description: WIP: Bug 1981304 - Use fast path more in LinearGradient with dithering → Bug 1981304 - Use fast path more in LinearGradient with dithering
Summary: Use fast path more in LinearGradient with dithering → Use LinearGradient fast path more with dithering
Summary: Use LinearGradient fast path more with dithering → Use linear gradient fast path as much as possible when dithering is enabled
Summary: Use linear gradient fast path as much as possible when dithering is enabled → More eagerly optimize linear gradient when dithering is enabled
Attachment #9505368 - Attachment description: Bug 1981304 - Use fast path more in LinearGradient with dithering → Bug 1981304 - More eagerly optimize linear gradient when dithering is enabled
Pushed by sikeda.birchill@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/69d60d22ea93 https://hg.mozilla.org/integration/autoland/rev/929b853f148c More eagerly optimize linear gradient when dithering is enabled r=gfx-reviewers,gw,lsalzman
Blocks: 1968618
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: