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:
bors-servo 2014-04-17 17:37:11 -04:00
commit b3bc449137

View file

@ -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 => {}
}
})
}