mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Revert "Auto merge of #18114 - emilio:revert-webgl-refactor, r=nox"
This reverts commit4d10d39e8f
, reversing changes made toee94e2b7c0
.
This commit is contained in:
parent
4d10d39e8f
commit
676f2c8acf
54 changed files with 3154 additions and 1426 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue