servo/components/script/dom/webgpu
Martin Robinson 6031a12fd1
Move ScriptToConstellationMsg to constellation_traits (#36364)
This is the last big change necessary to create the
`constellation_traits` crate. This moves the data structure for messages
that originate from the `ScriptThread` and are sent to the
`Contellation` to `constellation_traits`, effectively splitting
`script_traits` in half. Before, `script_traits` was responsible for
exposing the API of both the `ScriptThread` and the `Constellation` to
the rest of Servo.

- Data structures that are used by `ScriptToConstellationMsg` are moved
  to `constellation_traits`. The dependency graph looks a bit like this:
  `script_layout_interface` depends on `script_traits` depends on
  `constellation_traits` depends on `embedder_traits`.
- Data structures that are used in the embedding layer
  (`UntrustedNodeAddress`, `CompositorHitTestResult`, `TouchEventResult`
  and `AnimationState`) are moved to embedder_traits, to avoid a
  dependency cycle between `webrender_traits` and
  `constellation_traits`.
- Types dealing with MessagePorts and serialization are moved to
  `constellation_traits::message_port`.

Testing: This is covered by existing tests as it just moves types
around.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-04-05 22:13:29 +00:00
..
gpu.rs Move ScriptToConstellationMsg to constellation_traits (#36364) 2025-04-05 22:13:29 +00:00
gpuadapter.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpuadapterinfo.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpubindgroup.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpubindgrouplayout.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpubuffer.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpubufferusage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpucanvascontext.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpucolorwrite.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpucommandbuffer.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpucommandencoder.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpucompilationinfo.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpucompilationmessage.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpucomputepassencoder.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpucomputepipeline.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpuconvert.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpudevice.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpudevicelostinfo.rs Update rustfmt to the 2024 style edition (#35764) 2025-03-03 11:26:53 +00:00
gpuerror.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpuinternalerror.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpumapmode.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpuoutofmemoryerror.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpupipelineerror.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpupipelinelayout.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpuqueryset.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpuqueue.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpurenderbundle.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpurenderbundleencoder.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpurenderpassencoder.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpurenderpipeline.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpusampler.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpushadermodule.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpushaderstage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gpusupportedfeatures.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gpusupportedlimits.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gputexture.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
gputextureusage.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
gputextureview.rs webgpu: Add a webgpu_traits crate (#36320) 2025-04-04 08:06:07 +00:00
gpuuncapturederrorevent.rs Use new stylo crate renames (#35898) 2025-03-12 00:02:12 +00:00
gpuvalidationerror.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
identityhub.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00
mod.rs Update wgpu and impl WGSLLanguageFeatures (#34928) 2025-01-10 17:41:11 +00:00
wgsllanguagefeatures.rs script: Remove dependency on webgpu (#36332) 2025-04-04 11:52:58 +00:00