servo/components/script/dom/webxr
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
..
fakexrdevice.rs script: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +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: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +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: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +00:00
xrtest.rs script: Eliminate code duplication in the task queue (#34798) 2025-01-01 13:50:52 +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