Move PixelFormat to the pixels crate

This commit is contained in:
Anthony Ramine 2018-11-19 10:42:50 +01:00
parent faee0b2b0c
commit 2c0acf6b9b
14 changed files with 38 additions and 21 deletions

View file

@ -13,7 +13,7 @@ path = "lib.rs"
[features]
default = []
gl = ["gleam"]
gl = ["gleam", "pixels"]
[dependencies]
crossbeam-channel = "0.3"
@ -28,6 +28,7 @@ keyboard-types = "0.4.3"
log = "0.4"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
pixels = {path = "../pixels", optional = true}
profile_traits = {path = "../profile_traits"}
script_traits = {path = "../script_traits"}
servo_config = {path = "../config"}

View file

@ -22,7 +22,7 @@ use libc::c_void;
use msg::constellation_msg::{PipelineId, PipelineIndex, PipelineNamespaceId};
use net_traits::image::base::Image;
#[cfg(feature = "gl")]
use net_traits::image::base::PixelFormat;
use pixels::PixelFormat;
use profile_traits::time::{self as profile_time, profile, ProfilerCategory};
use script_traits::CompositorEvent::{MouseButtonEvent, MouseMoveEvent, TouchEvent};
use script_traits::{AnimationState, AnimationTickType, ConstellationMsg, LayoutControlMsg};