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

@ -4,10 +4,6 @@
#![deny(unsafe_code)]
use canvas_traits::canvas::CanvasId;
use crossbeam_channel::Sender;
use euclid::default::Size2D;
#[macro_use]
extern crate bitflags;
#[macro_use]
@ -26,13 +22,3 @@ pub mod canvas_paint_thread;
mod webgl_limits;
mod webgl_mode;
pub mod webgl_thread;
pub enum ConstellationCanvasMsg {
Create {
id_sender: Sender<CanvasId>,
size: Size2D<u64>,
webrender_sender: webrender_api::RenderApiSender,
antialias: bool,
},
Exit,
}