aboutsummaryrefslogtreecommitdiffstats
path: root/components/gfx/render_task.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-10-20 23:12:50 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-10-21 11:13:21 -0700
commit32e34663cd986c1117896eeb36ff4edcbb7bd325 (patch)
tree02bf75083f44bb354edc61ea9a79871742714230 /components/gfx/render_task.rs
parent156ca98236a57ee52ff5b68741bc7783ba073612 (diff)
downloadservo-32e34663cd986c1117896eeb36ff4edcbb7bd325.tar.gz
servo-32e34663cd986c1117896eeb36ff4edcbb7bd325.zip
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.
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r--components/gfx/render_task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs
index 32c5d97c2b1..71ee42520ee 100644
--- a/components/gfx/render_task.rs
+++ b/components/gfx/render_task.rs
@@ -162,7 +162,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
{ // Ensures RenderTask and graphics context are destroyed before shutdown msg
let native_graphics_context = compositor.get_graphics_metadata().map(
|md| NativePaintingGraphicsContext::from_metadata(&md));
- let cpu_painting = opts::get().cpu_painting;
+ let gpu_painting = opts::get().gpu_painting;
// FIXME: rust/#5967
let mut render_task = RenderTask {
@@ -173,10 +173,10 @@ impl<C:RenderListener + Send> RenderTask<C> {
font_ctx: box FontContext::new(fc.clone()),
time_profiler_chan: time_profiler_chan,
- graphics_context: if cpu_painting {
- CpuGraphicsContext
- } else {
+ graphics_context: if gpu_painting {
GpuGraphicsContext
+ } else {
+ CpuGraphicsContext
},
native_graphics_context: native_graphics_context,