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:
Kunal Mohan 2020-02-05 23:25:52 +05:30
parent 5f55cd5d71
commit a4ba33376a
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
8 changed files with 25 additions and 25 deletions

View file

@ -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,
}