webgpu: Implement onSubmittedWorkDone (#31772)

* Implement onSubmittedWorkDone

* Use rust closures for callback & actually remove entries from hashmap.

* Remove hashmap

* Fix warnings

* Update expectations

* clean flaky crashes

* re

* Update components/script/dom/gpuqueue.rs

Co-authored-by: Martin Robinson <mrobinson@igalia.com>

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Samson 2024-04-04 10:12:40 +02:00 committed by GitHub
parent 08ef158d4e
commit 62a916ce5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 1442 additions and 3109 deletions

View file

@ -991,8 +991,7 @@ dictionary GPURenderBundleEncoderDescriptor : GPURenderPassLayout {
interface GPUQueue {
undefined submit(sequence<GPUCommandBuffer> buffers);
//TODO:
//Promise<undefined> onSubmittedWorkDone();
Promise<undefined> onSubmittedWorkDone();
[Throws]
undefined writeBuffer(