mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move PixelFormat to the pixels crate
This commit is contained in:
parent
faee0b2b0c
commit
2c0acf6b9b
14 changed files with 38 additions and 21 deletions
|
@ -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"}
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue