mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
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:
parent
1d617f332e
commit
dae22b6e80
6 changed files with 47 additions and 69 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue