mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
separate waking the event loop, from communicating with a compositor
This commit is contained in:
parent
eac4f407e2
commit
3a693c7a23
9 changed files with 103 additions and 108 deletions
|
@ -23,7 +23,7 @@ pub struct DelayedCompositionTimerProxy {
|
|||
}
|
||||
|
||||
struct DelayedCompositionTimer {
|
||||
compositor_proxy: Box<CompositorProxy>,
|
||||
compositor_proxy: CompositorProxy,
|
||||
receiver: Receiver<ToDelayedCompositionTimerMsg>,
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ enum ToDelayedCompositionTimerMsg {
|
|||
}
|
||||
|
||||
impl DelayedCompositionTimerProxy {
|
||||
pub fn new(compositor_proxy: Box<CompositorProxy + Send>) -> DelayedCompositionTimerProxy {
|
||||
pub fn new(compositor_proxy: CompositorProxy) -> DelayedCompositionTimerProxy {
|
||||
let (to_timer_sender, to_timer_receiver) = channel();
|
||||
Builder::new().spawn(move || {
|
||||
let mut timer = DelayedCompositionTimer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue