mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -47,6 +47,7 @@ use net_traits::request::CorsSettings;
|
|||
use pixels::PixelFormat;
|
||||
use profile_traits::ipc as profiled_ipc;
|
||||
use script_traits::ScriptMsg;
|
||||
use serde_bytes::ByteBuf;
|
||||
use servo_url::{ImmutableOrigin, ServoUrl};
|
||||
use std::cell::Cell;
|
||||
use std::fmt;
|
||||
|
@ -505,7 +506,7 @@ impl CanvasState {
|
|||
|
||||
let smoothing_enabled = self.state.borrow().image_smoothing_enabled;
|
||||
self.send_canvas_2d_msg(Canvas2dMsg::DrawImage(
|
||||
Some(image_data.into()),
|
||||
Some(ByteBuf::from(image_data)),
|
||||
image_size,
|
||||
dest_rect,
|
||||
source_rect,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue