Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Use skia and deps from crates.io #218

Merged
merged 2 commits into from
Nov 30, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
64 changes: 23 additions & 41 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion src/rendergl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down