mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove layers dependency from util
This commit is contained in:
parent
fdb8632a5f
commit
8570b22677
8 changed files with 4 additions and 13 deletions
|
@ -24,9 +24,6 @@ git = "https://github.com/servo/rust-selectors"
|
|||
[dependencies.azure]
|
||||
git = "https://github.com/servo/rust-azure"
|
||||
|
||||
[dependencies.layers]
|
||||
git = "https://github.com/servo/rust-layers"
|
||||
|
||||
[dependencies]
|
||||
log = "*"
|
||||
bitflags = "*"
|
||||
|
|
|
@ -28,7 +28,6 @@ extern crate alloc;
|
|||
#[macro_use] extern crate cssparser;
|
||||
extern crate euclid;
|
||||
extern crate getopts;
|
||||
extern crate layers;
|
||||
extern crate libc;
|
||||
extern crate num as num_lib;
|
||||
extern crate num_cpus;
|
||||
|
|
|
@ -7,9 +7,7 @@
|
|||
|
||||
use geometry::ScreenPx;
|
||||
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use layers::geometry::DevicePixel;
|
||||
use getopts;
|
||||
use num_cpus;
|
||||
use std::collections::HashSet;
|
||||
|
@ -44,7 +42,7 @@ pub struct Opts {
|
|||
|
||||
/// The ratio of device pixels per px at the default scale. If unspecified, will use the
|
||||
/// platform default setting.
|
||||
pub device_pixels_per_px: Option<ScaleFactor<ScreenPx, DevicePixel, f32>>,
|
||||
pub device_pixels_per_px: Option<f32>,
|
||||
|
||||
/// `None` to disable the time profiler or `Some` with an interval in seconds to enable it and
|
||||
/// cause it to produce output on that interval (`-p`).
|
||||
|
@ -328,7 +326,7 @@ pub fn from_cmdline_args(args: &[String]) {
|
|||
};
|
||||
|
||||
let device_pixels_per_px = opt_match.opt_str("device-pixel-ratio").map(|dppx_str|
|
||||
ScaleFactor::new(dppx_str.parse().unwrap())
|
||||
dppx_str.parse().unwrap()
|
||||
);
|
||||
|
||||
let mut paint_threads: usize = match opt_match.opt_str("t") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue