mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Default to CPU renering on Android to avoid GPU-rendering-specific driver woes
This commit is contained in:
parent
00e5f010d4
commit
6c1fc7c19d
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));
|
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