servo/components/script/dom/webgpu
Martin Robinson b2eda71952
script: Move TaskManager to GlobalScope (#34827)
This is a simplification of the internal `TaskQueue` API that moves the
`TaskManager` to the `GlobalScope` itself. In addition, the handling of
cancellers is moved to the `TaskManager` as well. This means that no
arguments other than the `task` are necessary for queueing tasks, which
makes the API a lot easier to use and cleaner.

`TaskSource` now also keeps a copy of the canceller with it, so that
they always know the proper way to cancel any tasks queued on them.

There is one complication here. The event loop `sender` for dedicated
workers is constantly changing as it is set to `None` when not handling
messages. This is because this sender keeps a handle to the main
thread's `Worker` object, preventing garbage collection while any
messages are still in flight or being handled. This change allows
setting the `sender` on the `TaskManager` to `None` to allow proper
garbabge collection.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-01-04 08:41:50 +00:00
..
gpu.rs script: Move TaskManager to GlobalScope (#34827) 2025-01-04 08:41:50 +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 script: Expose node helpers as NodeTraits and give more descriptive names (#34832) 2025-01-03 18:55:01 +00:00
gpucolorwrite.rs
gpucommandbuffer.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
gpucommandencoder.rs chore: Update wgpu (#34795) 2025-01-02 14:25:33 +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 chore: Update wgpu (#34795) 2025-01-02 14:25:33 +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