mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +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
|
@ -186,10 +186,6 @@ impl Browser {
|
|||
pub fn request_title_for_main_frame(&self) {
|
||||
self.compositor.title_for_main_frame()
|
||||
}
|
||||
|
||||
pub fn shutdown(mut self) {
|
||||
self.compositor.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
fn create_constellation(opts: opts::Opts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue