mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Further changes required by Servo
This commit is contained in:
parent
d49b014c78
commit
7d72d7c385
2 changed files with 8 additions and 2 deletions
|
@ -49,7 +49,10 @@ fn report_statistics(stats: &PerThreadTraversalStatistics) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn parallelism_threshold() -> usize {
|
fn parallelism_threshold() -> usize {
|
||||||
static_prefs::pref!("layout.css.stylo-parallelism-threshold") as usize
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.stylo-parallelism-threshold") as usize;
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Do a DOM traversal for top-down and (optionally) bottom-up processing, generic over `D`.
|
/// Do a DOM traversal for top-down and (optionally) bottom-up processing, generic over `D`.
|
||||||
|
|
|
@ -59,7 +59,10 @@ pub const STACK_SAFETY_MARGIN_KB: usize = 168;
|
||||||
|
|
||||||
/// See documentation of the pref for performance characteristics.
|
/// See documentation of the pref for performance characteristics.
|
||||||
pub fn work_unit_max() -> usize {
|
pub fn work_unit_max() -> usize {
|
||||||
static_prefs::pref!("layout.css.stylo-work-unit-size") as usize
|
#[cfg(feature = "gecko")]
|
||||||
|
return static_prefs::pref!("layout.css.stylo-work-unit-size") as usize;
|
||||||
|
#[cfg(feature = "servo")]
|
||||||
|
return 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A callback to create our thread local context. This needs to be
|
/// A callback to create our thread local context. This needs to be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue