mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
bump required rayon version to 0.7
...and bring jpeg-decoder along for the ride. Minor tweaks were necessary because of rayon API changes.
This commit is contained in:
parent
7fc01437f4
commit
681b578326
9 changed files with 35 additions and 17 deletions
|
@ -25,7 +25,7 @@ msg = {path = "../msg"}
|
|||
net_traits = {path = "../net_traits"}
|
||||
parking_lot = {version = "0.3.3", features = ["nightly"]}
|
||||
profile_traits = {path = "../profile_traits"}
|
||||
rayon = "0.6"
|
||||
rayon = "0.7"
|
||||
script = {path = "../script"}
|
||||
script_layout_interface = {path = "../script_layout_interface"}
|
||||
script_traits = {path = "../script_traits"}
|
||||
|
|
|
@ -398,7 +398,7 @@ impl LayoutThread {
|
|||
opts::get().initial_window_size.to_f32() * ScaleFactor::new(1.0));
|
||||
|
||||
let configuration =
|
||||
rayon::Configuration::new().set_num_threads(layout_threads);
|
||||
rayon::Configuration::new().num_threads(layout_threads);
|
||||
let parallel_traversal = rayon::ThreadPool::new(configuration).ok();
|
||||
debug!("Possible layout Threads: {}", layout_threads);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue