Expose a method to toggle wr profiler

This commit is contained in:
Paul Rouget 2017-03-19 09:55:17 +01:00
parent ae1a7cc7b8
commit b8cd715b3e
2 changed files with 9 additions and 0 deletions

View file

@ -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()
}