Update WR (new texture cache allocator, shader deinit path).

This commit is contained in:
Glenn Watson 2017-08-16 09:18:43 +10:00
parent dc654c9912
commit 26083b1dca
4 changed files with 52 additions and 43 deletions

View file

@ -412,6 +412,10 @@ impl<Window: WindowMethods> IOCompositor<Window> {
compositor
}
pub fn deinit(self) {
self.webrender.deinit();
}
fn start_shutting_down(&mut self) {
debug!("Compositor sending Exit message to Constellation");
if let Err(e) = self.constellation_chan.send(ConstellationMsg::Exit) {
@ -1616,7 +1620,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
}
}
/// Why we performed a composite. This is used for debugging.
#[derive(Copy, Clone, PartialEq, Debug)]
pub enum CompositingReason {

View file

@ -268,6 +268,10 @@ impl<Window> Servo<Window> where Window: WindowMethods + 'static {
Box::new(logger)
}).expect("Failed to set logger.")
}
pub fn deinit(self) {
self.compositor.deinit();
}
}
fn create_compositor_channel(event_loop_waker: Box<compositor_thread::EventLoopWaker>)