mirror of
https://github.com/servo/servo.git
synced 2025-07-07 23:43:39 +01:00
Remove set_webrenderer_profiler_enabled in compositing/compositor.rs and servo/lib.rs and inlining this function in compositing/compositor.rs
This commit is contained in:
parent
e5e3748a46
commit
6309d516bd
2 changed files with 2 additions and 10 deletions
|
@ -828,7 +828,8 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
|
|
||||||
WindowEvent::ToggleWebRenderProfiler => {
|
WindowEvent::ToggleWebRenderProfiler => {
|
||||||
let profiler_enabled = self.webrender.get_profiler_enabled();
|
let profiler_enabled = self.webrender.get_profiler_enabled();
|
||||||
self.set_webrender_profiler_enabled(!profiler_enabled);
|
self.webrender.set_profiler_enabled(!profiler_enabled);
|
||||||
|
self.webrender_api.generate_frame(None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1632,11 +1633,6 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
||||||
self.shutdown_state != ShutdownState::FinishedShuttingDown
|
self.shutdown_state != ShutdownState::FinishedShuttingDown
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_webrender_profiler_enabled(&mut self, enabled: bool) {
|
|
||||||
self.webrender.set_profiler_enabled(enabled);
|
|
||||||
self.webrender_api.generate_frame(None);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Repaints and recomposites synchronously. You must be careful when calling this, as if a
|
/// Repaints and recomposites synchronously. You must be careful when calling this, as if a
|
||||||
/// paint is not scheduled the compositor will hang forever.
|
/// paint is not scheduled the compositor will hang forever.
|
||||||
///
|
///
|
||||||
|
|
|
@ -244,10 +244,6 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
||||||
self.compositor.handle_events(events)
|
self.compositor.handle_events(events)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_webrender_profiler_enabled(&mut self, enabled: bool) {
|
|
||||||
self.compositor.set_webrender_profiler_enabled(enabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn repaint_synchronously(&mut self) {
|
pub fn repaint_synchronously(&mut self) {
|
||||||
self.compositor.repaint_synchronously()
|
self.compositor.repaint_synchronously()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue