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

Myles C. Maxfield
Reported 2022-02-20 01:03:01 PST
.
Attachments
WIP - Not for review (69.41 KB, patch)
2022-02-20 01:05 PST, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 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.
Myles C. Maxfield
Comment 2 2022-02-20 01:05:07 PST
Created attachment 452686 [details] WIP - Not for review
Radar WebKit Bug Importer
Comment 3 2022-02-27 01:03:18 PST
Myles C. Maxfield
Comment 4 2022-03-15 16:50:14 PDT
*** This bug has been marked as a duplicate of bug 237932 ***
Note You need to log in before you can comment on or make changes to this bug.