From 6da4c12e90ab20b6f0bcf38d453204eb47d58f8d Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 30 Nov 2015 20:52:01 +0100 Subject: [PATCH 1/2] Work around https://github.com/rust-lang/rust/pull/30116 --- src/rendergl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendergl.rs b/src/rendergl.rs index f86a4ad..6308cac 100755 --- a/src/rendergl.rs +++ b/src/rendergl.rs @@ -542,7 +542,7 @@ impl RenderContext { let mut texture_coordinates_need_to_be_scaled_by_size = false; let program = match texture.target { TextureTarget2D => self.texture_2d_program, - TextureTargetRectangle(..) => match self.texture_rectangle_program { + TextureTargetRectangle => match self.texture_rectangle_program { Some(program) => { texture_coordinates_need_to_be_scaled_by_size = true; program From 62a13241de1cd7358f7759bee248594e5a4b378a Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 30 Nov 2015 20:08:11 +0100 Subject: [PATCH 2/2] Use skia and deps from crates.io --- .travis.yml | 5 +++++ Cargo.toml | 64 +++++++++++++++++++---------------------------------- 2 files changed, 28 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index 864876f..9f6237f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,11 @@ language: rust os: - osx - linux +addons: + apt: + packages: + - libxxf86vm-dev + - libosmesa6-dev before_install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi diff --git a/Cargo.toml b/Cargo.toml index 2337e62..1c728fe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,60 +1,42 @@ [package] name = "layers" -version = "0.1.1" +version = "0.2.0" authors = ["The Servo Project Developers"] [features] default = [] -plugins = ["euclid/plugins", "azure/plugins", "skia/euclid/plugins", "io-surface/euclid/plugins"] +plugins = ["euclid/plugins"] [dependencies] libc = "0.2" -rustc-serialize = "*" -log = "*" +rustc-serialize = "0.3.16" +log = "0.3.4" gleam = "0.1" -euclid = "0.3" - -[dependencies.skia] -git = "https://github.com/servo/skia" - -[dependencies.azure] -git = "https://github.com/servo/rust-azure" +euclid = "0.4" +servo-skia = "0.20130412.0" +azure = { git = "https://github.com/servo/rust-azure" } [target.x86_64-apple-darwin.dependencies] -core-foundation = "*" +core-foundation = "0.2.0" cgl = "0.1" +io-surface = "0.1.0" -[target.x86_64-apple-darwin.dependencies.io-surface] -git = "https://github.com/servo/io-surface-rs" - -[target.i686-unknown-linux-gnu.dependencies.glx] -git = "https://github.com/servo/rust-glx" - -[target.x86_64-unknown-linux-gnu.dependencies.glx] -git = "https://github.com/servo/rust-glx" - -[target.arm-unknown-linux-gnueabihf.dependencies.glx] -git = "https://github.com/servo/rust-glx" - -[target.aarch64-unknown-linux-gnu.dependencies.glx] -git = "https://github.com/servo/rust-glx" - -[target.i686-unknown-linux-gnu.dependencies.x11] -version = "2.3.0" -features = ["xlib"] +[target.i686-unknown-linux-gnu.dependencies] +glx = "0.1.0" +x11 = { version = "2.3.0", features = ["xlib"] } -[target.x86_64-unknown-linux-gnu.dependencies.x11] -version = "2.3.0" -features = ["xlib"] +[target.x86_64-unknown-linux-gnu.dependencies] +glx = "0.1.0" +x11 = { version = "2.3.0", features = ["xlib"] } -[target.arm-unknown-linux-gnueabihf.dependencies.x11] -version = "2.3.0" -features = ["xlib"] +[target.arm-unknown-linux-gnueabihf.dependencies] +glx = "0.1.0" +x11 = { version = "2.3.0", features = ["xlib"] } -[target.aarch64-unknown-linux-gnu.dependencies.x11] -version = "2.3.0" -features = ["xlib"] +[target.aarch64-unknown-linux-gnu.dependencies] +glx = "0.1.0" +x11 = { version = "2.3.0", features = ["xlib"] } -[target.arm-linux-androideabi.dependencies.egl] -git = "https://github.com/servo/rust-egl" +[target.arm-linux-androideabi.dependencies] +servo-egl = "0.2"