Skip to content

Commit

Permalink
Default to CPU renering on Android to avoid GPU-rendering-specific dr…
Browse files Browse the repository at this point in the history
…iver woes
  • Loading branch information
larsbergstrom committed Apr 17, 2014
1 parent 00e5f01 commit 6c1fc7c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/main/servo.rs
Expand Up @@ -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 => {}
}
})
}

Expand Down

5 comments on commit 6c1fc7c

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from metajack
at larsbergstrom@6c1fc7c

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging larsbergstrom/servo/android_201404c = 6c1fc7c into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

larsbergstrom/servo/android_201404c = 6c1fc7c merged ok, testing candidate = b3bc449

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = b3bc449

Please sign in to comment.