mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
Improve WebGL architecture.
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user