Simplify and unify compositor shutdown code paths

Unify all compositor shutdown code paths into two methods, one which
starts the shutdown and the other that finishes it. This simplifies the
way the compositor shuts down and prevents "leaking" pixmaps when
exiting in uncommon ways.
This commit is contained in:
Martin Robinson 2015-10-07 12:11:54 -07:00
parent 1d617f332e
commit dae22b6e80
6 changed files with 47 additions and 69 deletions

View file

@ -280,7 +280,6 @@ impl CompositorTask {
pub trait CompositorEventListener {
fn handle_events(&mut self, events: Vec<WindowEvent>) -> bool;
fn repaint_synchronously(&mut self);
fn shutdown(&mut self);
fn pinch_zoom_level(&self) -> f32;
/// Requests that the compositor send the title for the main frame as soon as possible.
fn title_for_main_frame(&self);