auto merge of #4557 : pcwalton/servo/filter, r=mbrubeck

`blur` and `drop-shadow` are not yet supported, because the
`text-shadow` PR makes some fundamental changes to blur rendering that
are needed first.

r? @mbrubeck
This commit is contained in:
bors-servo 2015-01-09 09:03:48 -07:00
commit ffdbf29db2
20 changed files with 499 additions and 62 deletions

View file

@ -516,11 +516,11 @@ impl WorkerThread {
-> DrawTarget {
let size = Size2D(tile.screen_rect.size.width as i32, tile.screen_rect.size.height as i32);
let draw_target = if !opts::get().gpu_painting {
DrawTarget::new(BackendType::SkiaBackend, size, SurfaceFormat::B8G8R8A8)
DrawTarget::new(BackendType::Skia, size, SurfaceFormat::B8G8R8A8)
} else {
// FIXME(pcwalton): Cache the components of draw targets (texture color buffer,
// paintbuffers) instead of recreating them.
let draw_target = DrawTarget::new_with_fbo(BackendType::SkiaBackend,
let draw_target = DrawTarget::new_with_fbo(BackendType::Skia,
native_graphics_context!(self),
size,
SurfaceFormat::B8G8R8A8);