mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
auto merge of #2148 : larsbergstrom/servo/android_201404c, r=metajack
On Android, our feeble GPU graphics stack is even less reliable than it is on Linux. To make it easier to bring Android devices online, this patch defaults to CPU rendering, which is much more stable and, frankly, faster. r? @metajack
This commit is contained in:
commit
b3bc449137
1 changed files with 10 additions and 1 deletions
|
@ -143,7 +143,16 @@ pub extern "C" fn android_start(argc: int, argv: **u8) -> int {
|
|||
args.push(str::raw::from_c_str(*argv.offset(i as int) as *i8));
|
||||
}
|
||||
}
|
||||
opts::from_cmdline_args(args).map(run);
|
||||
|
||||
let mut opts = opts::from_cmdline_args(args);
|
||||
match opts {
|
||||
Some(mut o) => {
|
||||
// Always use CPU rendering on android.
|
||||
o.cpu_painting = true;
|
||||
run(o);
|
||||
},
|
||||
None => {}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue