diff --git a/src/components/main/servo.rs b/src/components/main/servo.rs index cc000338ae0..28c1d002584 100644 --- a/src/components/main/servo.rs +++ b/src/components/main/servo.rs @@ -159,7 +159,7 @@ pub extern "C" fn android_start(argc: int, argv: **u8) -> int { } #[cfg(not(test))] -fn run(opts: opts::Opts) { +pub fn run(opts: opts::Opts) { let mut pool_config = green::PoolConfig::new(); pool_config.event_loop_factory = rustuv::event_loop; let mut pool = green::SchedPool::new(pool_config); diff --git a/src/components/util/opts.rs b/src/components/util/opts.rs index cae8e0fdba8..96f3f36b6c7 100644 --- a/src/components/util/opts.rs +++ b/src/components/util/opts.rs @@ -25,7 +25,7 @@ pub struct Opts { /// How many threads to use for CPU rendering (`-t`). /// /// FIXME(pcwalton): This is not currently used. All rendering is sequential. - n_render_threads: uint, + pub n_render_threads: uint, /// True to use CPU painting, false to use GPU painting via Skia-GL (`-c`). Note that /// compositing is always done on the GPU.