diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-19 18:00:30 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-19 18:00:30 -0600 |
commit | a983debaf16d788d500ce12262dc0b9b511b1e8e (patch) | |
tree | 6e3cf5e8d9bbc0046052953c7ab997a8a8e6a24e /components/gfx/render_task.rs | |
parent | c123f755586b0ad4673282015f46c6e215d54b9d (diff) | |
parent | b816550a17a7197601482c4df9922fbd051e358c (diff) | |
download | servo-a983debaf16d788d500ce12262dc0b9b511b1e8e.tar.gz servo-a983debaf16d788d500ce12262dc0b9b511b1e8e.zip |
auto merge of #3711 : glennw/servo/cleanup-opts, r=pcwalton
r? @pcwalton @metajack
Diffstat (limited to 'components/gfx/render_task.rs')
-rw-r--r-- | components/gfx/render_task.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/components/gfx/render_task.rs b/components/gfx/render_task.rs index 8ddc5f232b2..bfaaf94e238 100644 --- a/components/gfx/render_task.rs +++ b/components/gfx/render_task.rs @@ -10,7 +10,7 @@ use display_list::DisplayList; use font_context::FontContext; use render_context::RenderContext; -use azure::azure_hl::{B8G8R8A8, Color, DrawTarget, StolenGLResources}; +use azure::azure_hl::{B8G8R8A8, Color, DrawTarget, SkiaBackend, StolenGLResources}; use azure::AzFloat; use geom::matrix2d::Matrix2D; use geom::point::Point2D; @@ -317,17 +317,19 @@ impl<C:RenderListener + Send> RenderTask<C> { let width = tile.screen_rect.size.width; let height = tile.screen_rect.size.height; + // TODO: In the future we'll want to re-enable configuring the + // rendering backend - it's hardcoded to Skia below for now + // since none of the other backends work at all. let size = Size2D(width as i32, height as i32); let draw_target = match self.graphics_context { CpuGraphicsContext => { - DrawTarget::new(self.opts.render_backend, size, B8G8R8A8) + DrawTarget::new(SkiaBackend, size, B8G8R8A8) } GpuGraphicsContext => { // FIXME(pcwalton): Cache the components of draw targets // (texture color buffer, renderbuffers) instead of recreating them. let draw_target = - DrawTarget::new_with_fbo(self.opts.render_backend, - native_graphics_context!(self), + DrawTarget::new_with_fbo(SkiaBackend, native_graphics_context!(self), size, B8G8R8A8); draw_target.make_current(); |