diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-19 12:38:26 -0700 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-05-19 12:38:26 -0700 |
commit | 27c25e859a45c3d79c85e96b85ec5226a3231e10 (patch) | |
tree | b791aaf1184a1223f27c36bacb10ea35f6dcf494 /components/compositing/pipeline.rs | |
parent | 5bf28491605096e85c6170a7c419e3f8077715bc (diff) | |
parent | cc2b2b50a74515700b6cae88c66e734312d1fdbb (diff) | |
download | servo-27c25e859a45c3d79c85e96b85ec5226a3231e10.tar.gz servo-27c25e859a45c3d79c85e96b85ec5226a3231e10.zip |
Auto merge of #11270 - servo:ConstellationChan, r=asajeffrey
Remove ConstellationChan.
Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
Either:
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because _____
Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.
It's a pointless abstraction that propagates the obsolete chan terminology,
swaps the order in which the sender and receiver are returned, and hides a
source of panics.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11270)
<!-- Reviewable:end -->
Diffstat (limited to 'components/compositing/pipeline.rs')
-rw-r--r-- | components/compositing/pipeline.rs | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/components/compositing/pipeline.rs b/components/compositing/pipeline.rs index ca44fa49faf..15550f99002 100644 --- a/components/compositing/pipeline.rs +++ b/components/compositing/pipeline.rs @@ -14,9 +14,8 @@ use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use ipc_channel::router::ROUTER; use layers::geometry::DevicePixel; use layout_traits::{LayoutControlChan, LayoutThreadFactory}; -use msg::constellation_msg::{ConstellationChan, PanicMsg, FrameId, PipelineId, SubpageId}; -use msg::constellation_msg::{LoadData, WindowSizeData}; -use msg::constellation_msg::{PipelineNamespaceId}; +use msg::constellation_msg::{FrameId, LoadData, PanicMsg, PipelineId}; +use msg::constellation_msg::{PipelineNamespaceId, SubpageId, WindowSizeData}; use net_traits::ResourceThread; use net_traits::bluetooth_thread::BluetoothMethodMsg; use net_traits::image_cache_thread::ImageCacheThread; @@ -82,11 +81,11 @@ pub struct InitialPipelineState { /// If `None`, this is the root. pub parent_info: Option<(PipelineId, SubpageId)>, /// A channel to the associated constellation. - pub constellation_chan: ConstellationChan<ScriptMsg>, + pub constellation_chan: IpcSender<ScriptMsg>, /// A channel for the layout thread to send messages to the constellation. - pub layout_to_constellation_chan: ConstellationChan<LayoutMsg>, + pub layout_to_constellation_chan: IpcSender<LayoutMsg>, /// A channel to report panics - pub panic_chan: ConstellationChan<PanicMsg>, + pub panic_chan: IpcSender<PanicMsg>, /// A channel to schedule timer events. pub scheduler_chan: IpcSender<TimerEventRequest>, /// A channel to the compositor. @@ -389,8 +388,8 @@ impl Pipeline { pub struct UnprivilegedPipelineContent { id: PipelineId, parent_info: Option<(PipelineId, SubpageId)>, - constellation_chan: ConstellationChan<ScriptMsg>, - layout_to_constellation_chan: ConstellationChan<LayoutMsg>, + constellation_chan: IpcSender<ScriptMsg>, + layout_to_constellation_chan: IpcSender<LayoutMsg>, scheduler_chan: IpcSender<TimerEventRequest>, devtools_chan: Option<IpcSender<ScriptToDevtoolsControlMsg>>, script_to_compositor_chan: IpcSender<ScriptToCompositorMsg>, @@ -404,7 +403,7 @@ pub struct UnprivilegedPipelineContent { window_size: Option<WindowSizeData>, script_chan: IpcSender<ConstellationControlMsg>, load_data: LoadData, - panic_chan: ConstellationChan<PanicMsg>, + panic_chan: IpcSender<PanicMsg>, script_port: Option<IpcReceiver<ConstellationControlMsg>>, layout_to_paint_chan: OptionalIpcSender<LayoutToPaintMsg>, opts: Opts, @@ -488,7 +487,7 @@ pub struct PrivilegedPipelineContent { time_profiler_chan: time::ProfilerChan, mem_profiler_chan: profile_mem::ProfilerChan, load_data: LoadData, - panic_chan: ConstellationChan<PanicMsg>, + panic_chan: IpcSender<PanicMsg>, layout_to_paint_port: Receiver<LayoutToPaintMsg>, chrome_to_paint_chan: Sender<ChromeToPaintMsg>, chrome_to_paint_port: Receiver<ChromeToPaintMsg>, |