Bug 292808

Summary: Cache gradients with the destination colorspace
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=305066

Simon Fraser (smfr)
Reported 2025-05-09 17:02:36 PDT
Drawing gradients can involve expensive conversions between sRGB and the destination colorspace (usually the display colorspace). Since gradients are long-lived, and usually painted many times, it's more efficient to have them cache colors in the destination colorspace.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-05-09 17:02:45 PDT
Simon Fraser (smfr)
Comment 2 2025-05-09 17:07:23 PDT
EWS
Comment 3 2025-05-13 08:06:34 PDT
Committed 294844@main (47195378027d): <https://commits.webkit.org/294844@main> Reviewed commits have been landed. Closing PR #45198 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.