mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Expose a method to toggle wr profiler
This commit is contained in:
parent
ae1a7cc7b8
commit
b8cd715b3e
2 changed files with 9 additions and 0 deletions
|
@ -242,6 +242,10 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
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) {
|
||||
self.compositor.repaint_synchronously()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue