mirror of
https://github.com/servo/servo.git
synced 2025-07-30 18:50:36 +01:00
Remove dependency of constellation on canvas
move `ConstellationCanvasMsg` to canvas_traits and start canvas paint thread to components/servo. This, however, does not remove dependency for conditional compilation options.
This commit is contained in:
parent
5f55cd5d71
commit
a4ba33376a
8 changed files with 25 additions and 25 deletions
|
@ -6,6 +6,10 @@
|
|||
#![crate_type = "rlib"]
|
||||
#![deny(unsafe_code)]
|
||||
|
||||
use crate::canvas::CanvasId;
|
||||
use crossbeam_channel::Sender;
|
||||
use euclid::default::Size2D;
|
||||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
#[macro_use]
|
||||
|
@ -17,3 +21,13 @@ pub mod canvas;
|
|||
#[macro_use]
|
||||
pub mod webgl;
|
||||
mod webgl_channel;
|
||||
|
||||
pub enum ConstellationCanvasMsg {
|
||||
Create {
|
||||
id_sender: Sender<CanvasId>,
|
||||
size: Size2D<u64>,
|
||||
webrender_sender: webrender_api::RenderApiSender,
|
||||
antialias: bool,
|
||||
},
|
||||
Exit,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue