mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Update WR (radial gradients, subpixel positioning, tiling changes).
This commit is contained in:
parent
71deabc8bc
commit
4cbefe82b5
13 changed files with 117 additions and 61 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue