diff options
author | Anthony Ramine <nox@nox.paris> | 2019-10-11 19:40:15 +0200 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2019-11-13 11:54:51 -0500 |
commit | 808c34498b3120ee6b93247b664421f723184ab5 (patch) | |
tree | 9952345c09b992111c3d9d32c07cd69249377c67 /components/script | |
parent | 97d6351202436b999322f152b0fb5bffc98cbbbe (diff) | |
download | servo-808c34498b3120ee6b93247b664421f723184ab5.tar.gz servo-808c34498b3120ee6b93247b664421f723184ab5.zip |
Update webrender and serde_bytes
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/Cargo.toml | 1 | ||||
-rw-r--r-- | components/script/canvas_state.rs | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/script/Cargo.toml b/components/script/Cargo.toml index 23873d59767..c44a9a06a54 100644 --- a/components/script/Cargo.toml +++ b/components/script/Cargo.toml @@ -91,6 +91,7 @@ script_plugins = {path = "../script_plugins"} script_traits = {path = "../script_traits"} selectors = { path = "../selectors" } serde = {version = "1", features = ["derive"]} +serde_bytes = "0.11" servo_allocator = {path = "../allocator"} servo_arc = {path = "../servo_arc"} servo_atoms = {path = "../atoms"} diff --git a/components/script/canvas_state.rs b/components/script/canvas_state.rs index 4b47308fa46..b2c027833f5 100644 --- a/components/script/canvas_state.rs +++ b/components/script/canvas_state.rs @@ -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, |