Add a few more Tracy spans

This commit is contained in:
Ivan Molodetskikh
2023-10-11 14:53:53 +04:00
parent 1d66f1b81e
commit 3602876b5e
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -893,6 +893,8 @@ impl Niri {
renderer: &mut GlesRenderer,
output: &Output,
) -> Vec<OutputRenderElements<GlesRenderer>> {
let _span = tracy_client::span!("Niri::pointer_element");
let output_scale = Scale::from(output.current_scale().fractional_scale());
let output_pos = self.global_space.output_geometry(output).unwrap().loc;
let pointer_pos = self.seat.get_pointer().unwrap().current_location() - output_pos.to_f64();