diff options
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index e3e956096bb..7c0f97ef917 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -43,7 +43,7 @@ pub mod rpc; pub mod wrapper_traits; use atomic_refcell::AtomicRefCell; -use canvas_traits::CanvasMsg; +use canvas_traits::canvas::CanvasMsg; use core::nonzero::NonZero; use ipc_channel::ipc::IpcSender; use libc::c_void; @@ -124,8 +124,13 @@ pub enum LayoutElementType { SVGSVGElement, } +pub enum HTMLCanvasDataSource { + WebGL(webrender_api::ImageKey), + Image(Option<IpcSender<CanvasMsg>>) +} + pub struct HTMLCanvasData { - pub ipc_renderer: Option<IpcSender<CanvasMsg>>, + pub source: HTMLCanvasDataSource, pub width: u32, pub height: u32, } |