Bug 236935

Summary: [WebGPU] Use block-based callbacks instead of C function pointer callbacks
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: WebGPUAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dino, rmorisset, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 236934    
Bug Blocks:    
Attachments:
Description Flags
WIP - Not for review none

Description Myles C. Maxfield 2022-02-20 01:03:01 PST
.
Comment 1 Myles C. Maxfield 2022-02-20 01:03:13 PST
It turns out we can't actually use this just yet because blocks have to be copyable, which means any lambdas we convert to blocks have to be copyable, but in the GPU Process we receive a CompletionHandler to call back with a reply, but CompletionHandlers are not copyable, so we can't construct the block to pass in to WebGPU.framework.
Comment 2 Myles C. Maxfield 2022-02-20 01:05:07 PST
Created attachment 452686 [details]
WIP - Not for review
Comment 3 Radar WebKit Bug Importer 2022-02-27 01:03:18 PST
<rdar://problem/89523528>
Comment 4 Myles C. Maxfield 2022-03-15 16:50:14 PDT

*** This bug has been marked as a duplicate of bug 237932 ***