servo/components/script/dom/webgpu
Martin Robinson 77cfca65c4
script: Eliminate code duplication in the task queue (#34798)
Instead of creating a type for each `TaskSource` variety have each `TaskSource`
hold the same kind of sender (this was inconsistent before, but each
sender was effectively the same trait object), a pipeline, and a
`TaskSourceName`. This elminates the need to reimplement the same
queuing code for every task source.

In addition, have workers hold their own `TaskManager`. This allows just
exposing the manager on the `GlobalScope`. Currently the `TaskCanceller`
is different, but this will also be eliminated in a followup change.

This is a the first step toward having a shared set of `Sender`s on
`GlobalScope`.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-01 13:50:52 +00:00
..
gpu.rs script: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +00:00
gpuadapter.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpuadapterinfo.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpubindgroup.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpubindgrouplayout.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpubuffer.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpubufferusage.rs
gpucanvascontext.rs webgpu: Fix HTML event loop integration (#34631) 2024-12-17 06:13:44 +00:00
gpucolorwrite.rs
gpucommandbuffer.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpucommandencoder.rs Update wgpu for supporting TextureView.usage (#34721) 2024-12-21 05:18:27 +00:00
gpucompilationinfo.rs
gpucompilationmessage.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpucomputepassencoder.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpucomputepipeline.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpuconvert.rs Update wgpu to better handle optional attachment load/store ops (#34646) 2024-12-16 18:58:53 +00:00
gpudevice.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpudevicelostinfo.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpuerror.rs Rewrite From/TryFrom conversions on generated types to avoid future orphan rule violations (#34554) 2024-12-11 05:52:48 +00:00
gpuinternalerror.rs
gpumapmode.rs
gpuoutofmemoryerror.rs
gpupipelineerror.rs
gpupipelinelayout.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpuqueryset.rs
gpuqueue.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpurenderbundle.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpurenderbundleencoder.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpurenderpassencoder.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpurenderpipeline.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpusampler.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpushadermodule.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpushaderstage.rs
gpusupportedfeatures.rs
gpusupportedlimits.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gputexture.rs Update wgpu for supporting TextureView.usage (#34721) 2024-12-21 05:18:27 +00:00
gputextureusage.rs
gputextureview.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpuuncapturederrorevent.rs
gpuvalidationerror.rs
identityhub.rs
mod.rs