Update WR (radial gradients, subpixel positioning, tiling changes).

This commit is contained in:
Glenn Watson 2017-01-30 16:33:14 +10:00
parent 71deabc8bc
commit 4cbefe82b5
13 changed files with 117 additions and 61 deletions

View file

@ -559,9 +559,13 @@ impl<'a> CanvasPaintThread<'a> {
self.drawtarget.snapshot().get_data_surface().with_data(|element| {
let size = self.drawtarget.get_size();
self.webrender_api.update_image(self.webrender_image_key,
size.width as u32,
size.height as u32,
webrender_traits::ImageFormat::RGBA8,
webrender_traits::ImageDescriptor {
width: size.width as u32,
height: size.height as u32,
stride: None,
format: webrender_traits::ImageFormat::RGBA8,
is_opaque: false,
},
element.into());
let data = CanvasImageData {