diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-09-20 10:00:56 -0500 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2019-09-20 10:00:56 -0500 |
commit | a7ed8f7e5a09da5db517c874d7feacae6504258d (patch) | |
tree | 30d0a35c1b48e2558b10cf641ba72727ff45dca6 | |
parent | 8e95efb8b2b40bf7a77e090eadf8df5128e43a08 (diff) | |
download | servo-a7ed8f7e5a09da5db517c874d7feacae6504258d.tar.gz servo-a7ed8f7e5a09da5db517c874d7feacae6504258d.zip |
Add some debug! logs to the glutin port
-rw-r--r-- | ports/glutin/headed_window.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/glutin/headed_window.rs b/ports/glutin/headed_window.rs index 1b7dc0a580f..0e5c54e2551 100644 --- a/ports/glutin/headed_window.rs +++ b/ports/glutin/headed_window.rs @@ -134,6 +134,7 @@ impl Window { } let context = unsafe { + debug!("Making window {:?} current", context.window().id()); context.make_current().expect("Couldn't make window current") }; @@ -173,6 +174,7 @@ impl Window { context.make_not_current(); + debug!("Created window {:?}", context.window().id()); let window = Window { gl_context: RefCell::new(context), events_loop, @@ -480,10 +482,12 @@ impl WindowPortsMethods for Window { impl webxr::glwindow::GlWindow for Window { fn make_current(&mut self) { + debug!("Making window {:?} current", self.gl_context.borrow().window().id()); self.gl_context.get_mut().make_current(); } fn swap_buffers(&mut self) { + debug!("Swapping buffers on window {:?}", self.gl_context.borrow().window().id()); self.gl_context.get_mut().swap_buffers(); self.gl_context.get_mut().make_not_current(); } |