mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Use euclid from crates.io
This commit is contained in:
parent
7355bf1061
commit
8cbfb3482c
104 changed files with 272 additions and 306 deletions
|
@ -43,9 +43,6 @@ path = "../devtools_traits"
|
|||
[dependencies.azure]
|
||||
git = "https://github.com/servo/rust-azure"
|
||||
|
||||
[dependencies.geom]
|
||||
git = "https://github.com/servo/rust-geom"
|
||||
|
||||
[dependencies.layers]
|
||||
git = "https://github.com/servo/rust-layers"
|
||||
|
||||
|
@ -62,6 +59,7 @@ url = "0.2.35"
|
|||
time = "0.1.17"
|
||||
libc = "*"
|
||||
gleam = "0.1"
|
||||
euclid = "0.1"
|
||||
|
||||
[target.x86_64-apple-darwin.dependencies]
|
||||
core-graphics = "*"
|
||||
|
|
|
@ -11,10 +11,10 @@ use scrolling::ScrollingTimerProxy;
|
|||
use windowing;
|
||||
use windowing::{MouseWindowEvent, WindowEvent, WindowMethods, WindowNavigateMsg};
|
||||
|
||||
use geom::point::{Point2D, TypedPoint2D};
|
||||
use geom::rect::{Rect, TypedRect};
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use geom::size::{Size2D, TypedSize2D};
|
||||
use euclid::point::{Point2D, TypedPoint2D};
|
||||
use euclid::rect::{Rect, TypedRect};
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use gfx_traits::color;
|
||||
use gfx::paint_task::Msg as PaintMsg;
|
||||
use gfx::paint_task::PaintRequest;
|
||||
|
|
|
@ -6,11 +6,11 @@ use compositor::IOCompositor;
|
|||
use windowing::{MouseWindowEvent, WindowMethods};
|
||||
|
||||
use azure::azure_hl;
|
||||
use geom::length::Length;
|
||||
use geom::matrix::Matrix4;
|
||||
use geom::point::{Point2D, TypedPoint2D};
|
||||
use geom::size::TypedSize2D;
|
||||
use geom::rect::Rect;
|
||||
use euclid::length::Length;
|
||||
use euclid::matrix::Matrix4;
|
||||
use euclid::point::{Point2D, TypedPoint2D};
|
||||
use euclid::size::TypedSize2D;
|
||||
use euclid::rect::Rect;
|
||||
use gfx::paint_task::Msg as PaintMsg;
|
||||
use layers::color::Color;
|
||||
use layers::geometry::LayerPixel;
|
||||
|
|
|
@ -11,8 +11,8 @@ use compositor;
|
|||
use headless;
|
||||
use windowing::{WindowEvent, WindowMethods};
|
||||
|
||||
use geom::point::Point2D;
|
||||
use geom::rect::Rect;
|
||||
use euclid::point::Point2D;
|
||||
use euclid::rect::Rect;
|
||||
use layers::platform::surface::{NativeCompositingGraphicsContext, NativeGraphicsMetadata};
|
||||
use layers::layers::LayerBufferSet;
|
||||
use msg::compositor_msg::{Epoch, LayerId, LayerProperties, FrameTreeId};
|
||||
|
|
|
@ -14,10 +14,10 @@ use pipeline::{Pipeline, CompositionPipeline};
|
|||
use compositor_task::CompositorProxy;
|
||||
use compositor_task::Msg as CompositorMsg;
|
||||
use devtools_traits::{DevtoolsControlChan, DevtoolsControlMsg};
|
||||
use geom::point::Point2D;
|
||||
use geom::rect::{Rect, TypedRect};
|
||||
use geom::size::Size2D;
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use euclid::point::Point2D;
|
||||
use euclid::rect::{Rect, TypedRect};
|
||||
use euclid::size::Size2D;
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use gfx::font_cache_task::FontCacheTask;
|
||||
use layout_traits::{LayoutControlChan, LayoutControlMsg, LayoutTaskFactory};
|
||||
use libc;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
use compositor_task::{CompositorEventListener, CompositorReceiver, Msg};
|
||||
use windowing::WindowEvent;
|
||||
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use geom::size::Size2D;
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::Size2D;
|
||||
use msg::constellation_msg::Msg as ConstellationMsg;
|
||||
use msg::constellation_msg::{ConstellationChan, WindowSizeData};
|
||||
use profile_traits::mem;
|
||||
|
|
|
@ -11,7 +11,7 @@ extern crate log;
|
|||
|
||||
extern crate azure;
|
||||
extern crate devtools_traits;
|
||||
extern crate geom;
|
||||
extern crate euclid;
|
||||
extern crate gfx;
|
||||
extern crate layers;
|
||||
extern crate layout_traits;
|
||||
|
|
|
@ -8,8 +8,8 @@ use script_traits::{ScriptControlChan, ScriptTaskFactory};
|
|||
use script_traits::{NewLayoutInfo, ConstellationControlMsg};
|
||||
|
||||
use devtools_traits::DevtoolsControlChan;
|
||||
use geom::rect::{TypedRect};
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use euclid::rect::{TypedRect};
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use gfx::paint_task::Msg as PaintMsg;
|
||||
use gfx::paint_task::{PaintChan, PaintTask};
|
||||
use gfx::font_cache_task::FontCacheTask;
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
use compositor_task::{CompositorProxy, CompositorReceiver};
|
||||
|
||||
use geom::point::TypedPoint2D;
|
||||
use geom::scale_factor::ScaleFactor;
|
||||
use geom::size::TypedSize2D;
|
||||
use euclid::point::TypedPoint2D;
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use layers::geometry::DevicePixel;
|
||||
use layers::platform::surface::NativeGraphicsMetadata;
|
||||
use msg::constellation_msg::{Key, KeyState, KeyModifiers};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue