mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue