make servo::run() and opts::Opts.n_render_threads public for use in embedding crate

This commit is contained in:
Mike Blumenkrantz 2014-04-28 20:13:01 -04:00
parent c39db15834
commit 6b026e73b2
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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.