diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/compositing/Cargo.toml | 1 | ||||
-rw-r--r-- | components/compositing/compositor.rs | 3 | ||||
-rw-r--r-- | components/compositing/lib.rs | 3 | ||||
-rw-r--r-- | components/constellation/pipeline.rs | 3 | ||||
-rw-r--r-- | components/gfx/paint_thread.rs | 22 | ||||
-rw-r--r-- | components/gfx_traits/Cargo.toml | 1 | ||||
-rw-r--r-- | components/gfx_traits/lib.rs | 19 | ||||
-rw-r--r-- | components/servo/Cargo.lock | 2 |
8 files changed, 28 insertions, 26 deletions
diff --git a/components/compositing/Cargo.toml b/components/compositing/Cargo.toml index 29d0c3c7342..d5480587a52 100644 --- a/components/compositing/Cargo.toml +++ b/components/compositing/Cargo.toml @@ -9,7 +9,6 @@ name = "compositing" path = "lib.rs" [dependencies] -gfx = {path = "../gfx"} gfx_traits = {path = "../gfx_traits"} script_traits = {path = "../script_traits"} style_traits = {path = "../style_traits"} diff --git a/components/compositing/compositor.rs b/components/compositing/compositor.rs index 1c37c0df19c..256612f752f 100644 --- a/components/compositing/compositor.rs +++ b/components/compositing/compositor.rs @@ -14,8 +14,7 @@ use euclid::rect::TypedRect; use euclid::scale_factor::ScaleFactor; use euclid::size::TypedSize2D; use euclid::{Matrix4D, Point2D, Rect, Size2D}; -use gfx::paint_thread::{ChromeToPaintMsg, PaintRequest}; -use gfx_traits::{ScrollPolicy, StackingContextId}; +use gfx_traits::{ChromeToPaintMsg, PaintRequest, ScrollPolicy, StackingContextId}; use gfx_traits::{color, Epoch, FrameTreeId, FragmentType, LayerId, LayerKind, LayerProperties}; use gleam::gl; use gleam::gl::types::{GLint, GLsizei}; diff --git a/components/compositing/lib.rs b/components/compositing/lib.rs index a1e1b1f21e9..c76d163feb9 100644 --- a/components/compositing/lib.rs +++ b/components/compositing/lib.rs @@ -15,7 +15,6 @@ extern crate app_units; extern crate azure; extern crate euclid; -extern crate gfx; extern crate gfx_traits; extern crate gleam; extern crate image; @@ -39,7 +38,7 @@ extern crate webrender_traits; pub use compositor_thread::CompositorProxy; pub use compositor::IOCompositor; use euclid::size::TypedSize2D; -use gfx::paint_thread::ChromeToPaintMsg; +use gfx_traits::ChromeToPaintMsg; use ipc_channel::ipc::IpcSender; use msg::constellation_msg::PipelineId; use script_traits::{ConstellationControlMsg, LayoutControlMsg}; diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index a0dc0391065..c2193088557 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -11,7 +11,8 @@ use euclid::size::TypedSize2D; #[cfg(not(target_os = "windows"))] use gaol; use gfx::font_cache_thread::FontCacheThread; -use gfx::paint_thread::{ChromeToPaintMsg, LayoutToPaintMsg, PaintThread}; +use gfx::paint_thread::{LayoutToPaintMsg, PaintThread}; +use gfx_traits::ChromeToPaintMsg; use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use ipc_channel::router::ROUTER; use layers::geometry::DevicePixel; diff --git a/components/gfx/paint_thread.rs b/components/gfx/paint_thread.rs index db86e62f69e..ed1d7568ea6 100644 --- a/components/gfx/paint_thread.rs +++ b/components/gfx/paint_thread.rs @@ -15,14 +15,14 @@ use euclid::rect::Rect; use euclid::size::Size2D; use font_cache_thread::FontCacheThread; use font_context::FontContext; -use gfx_traits::StackingContextId; -use gfx_traits::{Epoch, FrameTreeId, LayerId, LayerKind, LayerProperties, PaintListener}; +use gfx_traits::{ChromeToPaintMsg, Epoch, LayerId, LayerKind, LayerProperties}; +use gfx_traits::{PaintListener, PaintRequest, StackingContextId}; use ipc_channel::ipc::IpcSender; use layers::layers::{BufferRequest, LayerBuffer, LayerBufferSet}; use layers::platform::surface::{NativeDisplay, NativeSurface}; use msg::constellation_msg::{PanicMsg, PipelineId}; use paint_context::PaintContext; -use profile_traits::mem::{self, ReportsChan}; +use profile_traits::mem; use profile_traits::time; use rand::{self, Rng}; use std::borrow::ToOwned; @@ -325,14 +325,6 @@ impl LayerCreator { } } -pub struct PaintRequest { - pub buffer_requests: Vec<BufferRequest>, - pub scale: f32, - pub layer_id: LayerId, - pub epoch: Epoch, - pub layer_kind: LayerKind, -} - pub enum Msg { FromLayout(LayoutToPaintMsg), FromChrome(ChromeToPaintMsg), @@ -344,14 +336,6 @@ pub enum LayoutToPaintMsg { Exit, } -pub enum ChromeToPaintMsg { - Paint(Vec<PaintRequest>, FrameTreeId), - PaintPermissionGranted, - PaintPermissionRevoked, - CollectReports(ReportsChan), - Exit, -} - pub struct PaintThread<C> { id: PipelineId, _url: Url, diff --git a/components/gfx_traits/Cargo.toml b/components/gfx_traits/Cargo.toml index 133faf344b3..853059c1b25 100644 --- a/components/gfx_traits/Cargo.toml +++ b/components/gfx_traits/Cargo.toml @@ -13,6 +13,7 @@ azure = {git = "https://github.com/servo/rust-azure", features = ["plugins"]} layers = {git = "https://github.com/servo/rust-layers", features = ["plugins"]} msg = {path = "../msg"} plugins = {path = "../plugins"} +profile_traits = {path = "../profile_traits"} range = {path = "../range"} rustc-serialize = "0.3" euclid = {version = "0.6.5", features = ["plugins"]} diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index a131792331d..9d01f883389 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -15,6 +15,7 @@ extern crate euclid; extern crate heapsize; extern crate layers; extern crate msg; +extern crate profile_traits; #[macro_use] extern crate range; extern crate rustc_serialize; @@ -27,7 +28,9 @@ pub use paint_listener::PaintListener; use azure::azure_hl::Color; use euclid::Matrix4D; use euclid::rect::Rect; +use layers::layers::BufferRequest; use msg::constellation_msg::PipelineId; +use profile_traits::mem::ReportsChan; use range::RangeIndex; use std::fmt::{self, Debug, Formatter}; use std::sync::atomic::{ATOMIC_USIZE_INIT, AtomicUsize, Ordering}; @@ -266,3 +269,19 @@ int_range_index! { #[derive(HeapSizeOf)] struct ByteIndex(isize) } + +pub struct PaintRequest { + pub buffer_requests: Vec<BufferRequest>, + pub scale: f32, + pub layer_id: LayerId, + pub epoch: Epoch, + pub layer_kind: LayerKind, +} + +pub enum ChromeToPaintMsg { + Paint(Vec<PaintRequest>, FrameTreeId), + PaintPermissionGranted, + PaintPermissionRevoked, + CollectReports(ReportsChan), + Exit, +} diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index f5e2d6152c3..e2bdcca8561 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -313,7 +313,6 @@ dependencies = [ "app_units 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "azure 0.4.5 (git+https://github.com/servo/rust-azure)", "euclid 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", - "gfx 0.0.1", "gfx_traits 0.0.1", "gleam 0.2.19 (registry+https://github.com/rust-lang/crates.io-index)", "image 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -818,6 +817,7 @@ dependencies = [ "layers 0.2.5 (git+https://github.com/servo/rust-layers)", "msg 0.0.1", "plugins 0.0.1", + "profile_traits 0.0.1", "range 0.0.1", "rustc-serialize 0.3.19 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.7.10 (registry+https://github.com/rust-lang/crates.io-index)", |