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

@ -892,6 +892,9 @@ fn create_constellation(
player_context,
event_loop_waker,
};
let (canvas_chan, ipc_canvas_chan) = canvas::canvas_paint_thread::CanvasPaintThread::start();
let (constellation_chan, from_swmanager_sender) = Constellation::<
script_layout_interface::message::Msg,
layout_thread::LayoutThread,
@ -904,6 +907,8 @@ fn create_constellation(
opts.is_running_problem_test,
opts.hard_fail,
opts.enable_canvas_antialiasing,
canvas_chan,
ipc_canvas_chan,
);
if let Some(webvr_constellation_sender) = webvr_constellation_sender {