Bug 253599

Summary: [GPU Process] Cache Gradient as a rendering resource
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: Layout and RenderingAssignee: Said Abou-Hallawa <sabouhallawa>
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   

Description Said Abou-Hallawa 2023-03-08 13:21:56 PST
Sending the gradient data to GPUProcess every time it is used forces creating the platform gradient. To avoid creating the platform gradient, we are going to cache Gradient as a rendering resource in GPUProcess. So the object (and its platform gradient) will stay alive in GPUProcess as long as the WebProcess gradient is alive.
Comment 1 Radar WebKit Bug Importer 2023-03-08 13:28:03 PST
<rdar://problem/106447608>
Comment 2 Said Abou-Hallawa 2023-03-08 13:31:49 PST
Pull request: https://github.com/WebKit/WebKit/pull/11252
Comment 3 EWS 2023-03-27 17:14:29 PDT
Committed 262185@main (676af9d86baa): <https://commits.webkit.org/262185@main>

Reviewed commits have been landed. Closing PR #11252 and removing active labels.