servo/components/script/dom/webxr
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
..
fakexrdevice.rs script: Move TaskManager to GlobalScope (#34827) 2025-01-04 08:41:50 +00:00
fakexrinputcontroller.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
mod.rs
xrboundedreferencespace.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrcompositionlayer.rs
xrcubelayer.rs
xrcylinderlayer.rs
xrequirectlayer.rs
xrframe.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrhand.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrhittestresult.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrhittestsource.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrinputsource.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrinputsourcearray.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrinputsourceevent.rs
xrinputsourceschangeevent.rs
xrjointpose.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrjointspace.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrlayer.rs
xrlayerevent.rs
xrmediabinding.rs
xrpose.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrprojectionlayer.rs
xrquadlayer.rs
xrray.rs
xrreferencespace.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrreferencespaceevent.rs
xrrenderstate.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrrigidtransform.rs
xrsession.rs script: Move TaskManager to GlobalScope (#34827) 2025-01-04 08:41:50 +00:00
xrsessionevent.rs
xrspace.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrsubimage.rs
xrsystem.rs script: Move TaskManager to GlobalScope (#34827) 2025-01-04 08:41:50 +00:00
xrtest.rs script: Move TaskManager to GlobalScope (#34827) 2025-01-04 08:41:50 +00:00
xrview.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrviewerpose.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrviewport.rs Add CanGc argument to reflect_dom_object (#34606) 2024-12-13 15:51:59 +00:00
xrwebglbinding.rs
xrwebgllayer.rs
xrwebglsubimage.rs