Skip to content
Permalink
Browse files

make servo::run() and opts::Opts.n_render_threads public for use in e…

…mbedding crate
  • Loading branch information...
zmike committed Apr 29, 2014
1 parent c39db15 commit 6b026e73b2afd986be1fd071f35d5282f3e12029
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/components/main/servo.rs
  2. +1 −1 src/components/util/opts.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);
@@ -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.

0 comments on commit 6b026e7

Please sign in to comment.
You can’t perform that action at this time.