Skip to content

Commit

Permalink
make servo::run() and opts::Opts.n_render_threads public for use in e…
Browse files Browse the repository at this point in the history
…mbedding crate
  • Loading branch information
Mike Blumenkrantz committed May 26, 2014
1 parent c39db15 commit 6b026e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/main/servo.rs
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/util/opts.rs
Expand Up @@ -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.
Expand Down

0 comments on commit 6b026e7

Please sign in to comment.