mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Port ScriptToConstellation channel to generic channel (#38990)
This change was previously part of
fb1c0a4c48
, which got reverted due to an
issue
with the compositor channel.
Split this change out into a separate PR, as it probably should have
been in the first place. Presumably it was one change before, since
serialization of crossbeam generic channels in single-process mode was
not implemented yet at the time.
Testing: Covered by existing tests. No custom callbacks involved.
Part of #38912
Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
c4a69abe30
commit
20e955277a
4 changed files with 9 additions and 11 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use base::generic_channel::GenericSender;
|
||||
use base::id::PipelineId;
|
||||
use constellation_traits::{ScriptToConstellationChan, ScriptToConstellationMessage};
|
||||
use crossbeam_channel::Sender;
|
||||
|
@ -196,7 +197,7 @@ pub(crate) struct WorkletGlobalScopeInit {
|
|||
/// Channel to devtools
|
||||
pub(crate) devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>,
|
||||
/// Messages to send to constellation
|
||||
pub(crate) to_constellation_sender: IpcSender<(PipelineId, ScriptToConstellationMessage)>,
|
||||
pub(crate) to_constellation_sender: GenericSender<(PipelineId, ScriptToConstellationMessage)>,
|
||||
/// The image cache
|
||||
pub(crate) image_cache: Arc<dyn ImageCache>,
|
||||
/// Identity manager for WebGPU resources
|
||||
|
|
|
@ -340,7 +340,7 @@ pub(crate) struct ScriptThreadSenders {
|
|||
/// particular pipelines.
|
||||
#[no_trace]
|
||||
pub(crate) pipeline_to_constellation_sender:
|
||||
IpcSender<(PipelineId, ScriptToConstellationMessage)>,
|
||||
GenericSender<(PipelineId, ScriptToConstellationMessage)>,
|
||||
|
||||
/// The shared [`IpcSender`] which is sent to the `ImageCache` when requesting an image. The
|
||||
/// messages on this channel are routed to crossbeam [`Sender`] on the router thread, which
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue