mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
gfx: Switch the default to CPU painting.
We've discussed this some and I think there's consensus to do it as a pragmatic decision for now. CPU painting is more stable, especially with buggy drivers, and faster (because we aren't caching the necessary OpenGL objects yet and possibly for other reasons), so it provides a better "out of the box" experience for newcomers to Servo who don't know to pass the `-c` option. This patch continues to reftest both Skia and Skia-GL out of a desire to keep options open. Skia-GL remains a first-class citizen.
This commit is contained in:
parent
156ca98236
commit
32e34663cd
4 changed files with 15 additions and 11 deletions
|
@ -231,10 +231,13 @@ fn capture(reftest: &Reftest, side: uint) -> (u32, u32, Vec<u8>) {
|
|||
url.fragment = reftest.fragment_identifier.clone();
|
||||
url.to_string()
|
||||
});
|
||||
// GPU rendering is the default
|
||||
// CPU rendering is the default
|
||||
if reftest.render_mode.contains(CpuRendering) {
|
||||
command.arg("-c");
|
||||
}
|
||||
if reftest.render_mode.contains(GpuRendering) {
|
||||
command.arg("-g");
|
||||
}
|
||||
if reftest.experimental {
|
||||
command.arg("--experimental");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue