mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
make servo::run() and opts::Opts.n_render_threads public for use in embedding crate
This commit is contained in:
parent
c39db15834
commit
6b026e73b2
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue