WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
236934
[WebGPU] Tracer bullet part 12: Add block-based callbacks in addition to C function pointer callbacks
https://bugs.webkit.org/show_bug.cgi?id=236934
Summary
[WebGPU] Tracer bullet part 12: Add block-based callbacks in addition to C fu...
Myles C. Maxfield
Reported
2022-02-20 00:56:00 PST
Instead of a userdata/function pointer pair, we can just use a block.
Attachments
Patch
(14.04 KB, patch)
2022-02-20 01:02 PST
,
Myles C. Maxfield
dino
: review+
Details
Formatted Diff
Diff
Patch for committing
(22.33 KB, patch)
2022-02-21 13:49 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2022-02-20 00:57:45 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:02:28 PST
Created
attachment 452684
[details]
Patch
Myles C. Maxfield
Comment 3
2022-02-21 13:49:01 PST
Created
attachment 452770
[details]
Patch for committing
Myles C. Maxfield
Comment 4
2022-02-21 14:09:59 PST
Committed
r290270
(
247595@trunk
): <
https://commits.webkit.org/247595@trunk
>
Radar WebKit Bug Importer
Comment 5
2022-02-21 14:10:20 PST
<
rdar://problem/89255880
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug