mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
separate waking the event loop, from communicating with a compositor
This commit is contained in:
parent
eac4f407e2
commit
3a693c7a23
9 changed files with 103 additions and 108 deletions
|
@ -172,7 +172,7 @@ pub struct Constellation<Message, LTF, STF> {
|
|||
|
||||
/// A channel (the implementation of which is port-specific) for the
|
||||
/// constellation to send messages to the compositor thread.
|
||||
compositor_proxy: Box<CompositorProxy>,
|
||||
compositor_proxy: CompositorProxy,
|
||||
|
||||
/// Channels for the constellation to send messages to the public
|
||||
/// resource-related threads. There are two groups of resource
|
||||
|
@ -302,7 +302,7 @@ pub struct Constellation<Message, LTF, STF> {
|
|||
/// State needed to construct a constellation.
|
||||
pub struct InitialConstellationState {
|
||||
/// A channel through which messages can be sent to the compositor.
|
||||
pub compositor_proxy: Box<CompositorProxy + Send>,
|
||||
pub compositor_proxy: CompositorProxy,
|
||||
|
||||
/// A channel to the debugger, if applicable.
|
||||
pub debugger_chan: Option<debugger::Sender>,
|
||||
|
|
|
@ -69,7 +69,7 @@ pub struct Pipeline {
|
|||
pub layout_chan: IpcSender<LayoutControlMsg>,
|
||||
|
||||
/// A channel to the compositor.
|
||||
pub compositor_proxy: Box<CompositorProxy + 'static + Send>,
|
||||
pub compositor_proxy: CompositorProxy,
|
||||
|
||||
/// The most recently loaded URL in this pipeline.
|
||||
/// Note that this URL can change, for example if the page navigates
|
||||
|
@ -123,7 +123,7 @@ pub struct InitialPipelineState {
|
|||
pub scheduler_chan: IpcSender<TimerSchedulerMsg>,
|
||||
|
||||
/// A channel to the compositor.
|
||||
pub compositor_proxy: Box<CompositorProxy + 'static + Send>,
|
||||
pub compositor_proxy: CompositorProxy,
|
||||
|
||||
/// A channel to the developer tools, if applicable.
|
||||
pub devtools_chan: Option<Sender<DevtoolsControlMsg>>,
|
||||
|
@ -303,7 +303,7 @@ impl Pipeline {
|
|||
parent_info: Option<(PipelineId, FrameType)>,
|
||||
event_loop: Rc<EventLoop>,
|
||||
layout_chan: IpcSender<LayoutControlMsg>,
|
||||
compositor_proxy: Box<CompositorProxy + 'static + Send>,
|
||||
compositor_proxy: CompositorProxy,
|
||||
is_private: bool,
|
||||
url: ServoUrl,
|
||||
visible: bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue