Skip to content

Commit

Permalink
Move pipeline into the constellation crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed May 20, 2016
1 parent 8e96a8e commit 9e4bb47
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 14 deletions.
1 change: 0 additions & 1 deletion components/compositing/Cargo.toml
Expand Up @@ -18,7 +18,6 @@ msg = {path = "../msg"}
profile_traits = {path = "../profile_traits"}
net_traits = {path = "../net_traits"}
util = {path = "../util"}
devtools_traits = {path = "../devtools_traits"}
plugins = {path = "../plugins"}
azure = {git = "https://github.com/servo/rust-azure", features = ["plugins"]}
layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]}
Expand Down
2 changes: 0 additions & 2 deletions components/compositing/lib.rs
Expand Up @@ -14,7 +14,6 @@
extern crate app_units;

extern crate azure;
extern crate devtools_traits;
extern crate euclid;
#[cfg(not(target_os = "windows"))]
extern crate gaol;
Expand Down Expand Up @@ -60,7 +59,6 @@ mod compositor;
mod compositor_layer;
pub mod compositor_thread;
mod delayed_composition;
pub mod pipeline;
#[cfg(not(target_os = "windows"))]
pub mod sandboxing;
mod surface_map;
Expand Down
2 changes: 2 additions & 0 deletions components/constellation/Cargo.toml
Expand Up @@ -18,6 +18,7 @@ euclid = {version = "0.6.4", features = ["plugins"]}
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
ipc-channel = {git = "https://github.com/servo/ipc-channel"}
layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]}
layout_traits = {path = "../layout_traits"}
log = "0.3.5"
msg = {path = "../msg"}
Expand All @@ -27,6 +28,7 @@ plugins = {path = "../plugins"}
profile_traits = {path = "../profile_traits"}
rand = "0.3"
script_traits = {path = "../script_traits"}
serde = "0.7"
serde_macros = "0.7"
style_traits = {path = "../style_traits"}
url = {version = "1.0.0", features = ["heap_size"]}
Expand Down
2 changes: 1 addition & 1 deletion components/constellation/constellation.rs
Expand Up @@ -16,7 +16,6 @@ use clipboard::ClipboardContext;
use compositing::CompositorMsg as FromCompositorMsg;
use compositing::compositor_thread::CompositorProxy;
use compositing::compositor_thread::Msg as ToCompositorMsg;
use compositing::pipeline::{InitialPipelineState, Pipeline, UnprivilegedPipelineContent};
#[cfg(not(target_os = "windows"))]
use compositing::sandboxing;
use compositing::{AnimationTickType, SendableFrameTree};
Expand Down Expand Up @@ -46,6 +45,7 @@ use net_traits::image_cache_thread::ImageCacheThread;
use net_traits::storage_thread::StorageThreadMsg;
use net_traits::{self, ResourceThreads, IpcSend};
use offscreen_gl_context::{GLContextAttributes, GLLimits};
use pipeline::{InitialPipelineState, Pipeline, UnprivilegedPipelineContent};
use profile_traits::mem;
use profile_traits::time;
use rand::{random, Rng, SeedableRng, StdRng};
Expand Down
4 changes: 4 additions & 0 deletions components/constellation/lib.rs
Expand Up @@ -23,6 +23,7 @@ extern crate gaol;
extern crate gfx;
extern crate gfx_traits;
extern crate ipc_channel;
extern crate layers;
extern crate layout_traits;
#[macro_use]
extern crate log;
Expand All @@ -33,13 +34,16 @@ extern crate offscreen_gl_context;
extern crate profile_traits;
extern crate rand;
extern crate script_traits;
extern crate serde;
extern crate style_traits;
extern crate url;
#[macro_use]
extern crate util;
extern crate webrender_traits;

mod constellation;
mod pipeline;
mod timer_scheduler;

pub use constellation::{Constellation, InitialConstellationState};
pub use pipeline::UnprivilegedPipelineContent;
Expand Up @@ -2,10 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use CompositionPipeline;
use CompositorProxy;
use compositor_thread;
use compositor_thread::Msg as CompositorMsg;
use compositing::CompositionPipeline;
use compositing::CompositorProxy;
use compositing::compositor_thread;
use compositing::compositor_thread::Msg as CompositorMsg;
use devtools_traits::{DevtoolsControlMsg, ScriptToDevtoolsControlMsg};
use euclid::scale_factor::ScaleFactor;
use euclid::size::TypedSize2D;
Expand Down
3 changes: 2 additions & 1 deletion components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions components/servo/lib.rs
Expand Up @@ -60,13 +60,12 @@ fn webdriver(_port: u16, _constellation: Sender<ConstellationMsg>) { }
use compositing::CompositorEventListener;
use compositing::CompositorMsg as ConstellationMsg;
use compositing::compositor_thread::InitialCompositorState;
use compositing::pipeline::UnprivilegedPipelineContent;
#[cfg(not(target_os = "windows"))]
use compositing::sandboxing;
use compositing::windowing::WindowEvent;
use compositing::windowing::WindowMethods;
use compositing::{CompositorProxy, CompositorThread};
use constellation::{Constellation, InitialConstellationState};
use constellation::{Constellation, InitialConstellationState, UnprivilegedPipelineContent};
#[cfg(not(target_os = "windows"))]
use gaol::sandbox::{ChildSandbox, ChildSandboxMethods};
use gfx::font_cache_thread::FontCacheThread;
Expand Down
2 changes: 1 addition & 1 deletion etc/ci/check_no_unwrap.sh
Expand Up @@ -10,7 +10,7 @@ cd "$(git rev-parse --show-toplevel)" # cd into repo root so make sure paths wor

# files that should not contain "unwrap"
FILES=("components/compositing/compositor.rs"
"components/compositing/pipeline.rs"
"components/constellation/pipeline.rs"
"components/constellation/constellation.rs")

# make sure the files exist
Expand Down
3 changes: 2 additions & 1 deletion ports/cef/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ports/gonk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9e4bb47

Please sign in to comment.