mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Introduce InitialCompositorState
This commit is contained in:
parent
3d420abe40
commit
5cf8d597e6
4 changed files with 48 additions and 67 deletions
|
@ -81,6 +81,7 @@ pub use export::gleam::gl;
|
|||
use compositing::CompositorEventListener;
|
||||
use compositing::windowing::WindowEvent;
|
||||
|
||||
use compositing::compositor_task::InitialCompositorState;
|
||||
use compositing::windowing::WindowMethods;
|
||||
use compositing::{CompositorProxy, CompositorTask, Constellation};
|
||||
|
||||
|
@ -163,12 +164,13 @@ impl Browser {
|
|||
|
||||
// The compositor coordinates with the client window to create the final
|
||||
// rendered page and display it somewhere.
|
||||
let compositor = CompositorTask::create(window,
|
||||
compositor_proxy,
|
||||
compositor_receiver,
|
||||
constellation_chan,
|
||||
time_profiler_chan,
|
||||
mem_profiler_chan);
|
||||
let compositor = CompositorTask::create(window, InitialCompositorState {
|
||||
sender: compositor_proxy,
|
||||
receiver: compositor_receiver,
|
||||
constellation_chan: constellation_chan,
|
||||
time_profiler_chan: time_profiler_chan,
|
||||
mem_profiler_chan: mem_profiler_chan,
|
||||
});
|
||||
|
||||
Browser {
|
||||
compositor: compositor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue