Move ChromeToPaintMsg to gfx_traits.

This allows compositing not to depend on gfx.
This commit is contained in:
Ms2ger 2016-06-05 14:01:07 +02:00
parent 86d65b6064
commit 7d1421bd83
9 changed files with 29 additions and 27 deletions

View file

@ -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"}

View file

@ -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};

View file

@ -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};