Bug 261337

Summary: Group preferences shared by the WebProcess to the GPUProcess into a new structure
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=262401

Description Chris Dumez 2023-09-08 09:49:26 PDT
Group preferences shared by the WebProcess to the GPUProcess into a new structure. We currently have 3 preferences (WebGPU, WebGL, DOMRendering) which are dealt with individually. We now have a new GPUProcessPreferencesForWebProcess structure with a single code path to communicate those to the GPUProcess.

This reduces the amount of IPC between the UIProcess and the GPUProcess and will make it easier to do synchronization (wait until the GPUProcess has updated its preferences before proceeding), in order to fix <rdar://114245301>.
Comment 1 Chris Dumez 2023-09-08 09:52:56 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17595
Comment 2 EWS 2023-09-08 12:28:51 PDT
Committed 267806@main (82ca220bc8d5): <https://commits.webkit.org/267806@main>

Reviewed commits have been landed. Closing PR #17595 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-09-08 12:32:40 PDT
<rdar://problem/115185434>