mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update webrender and serde_bytes
This commit is contained in:
parent
97d6351202
commit
808c34498b
17 changed files with 77 additions and 70 deletions
|
@ -125,7 +125,7 @@ impl<'a> CanvasPaintThread<'a> {
|
|||
) => {
|
||||
let data = imagedata.map_or_else(
|
||||
|| vec![0; image_size.width as usize * image_size.height as usize * 4],
|
||||
|bytes| bytes.into(),
|
||||
|bytes| bytes.into_vec(),
|
||||
);
|
||||
self.canvas(canvas_id).draw_image(
|
||||
data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue