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

@ -236,9 +236,13 @@ impl WebGLPaintThread {
// TODO: This shouldn't be a common path, but try to avoid
// the spurious clone().
webrender_api.update_image(image_key,
width as u32,
height as u32,
webrender_traits::ImageFormat::RGBA8,
webrender_traits::ImageDescriptor {
width: width as u32,
height: height as u32,
stride: None,
format: webrender_traits::ImageFormat::RGBA8,
is_opaque: false,
},
pixels.clone());
let image_data = CanvasImageData {