Report layers rendered to iced_beacon

This commit is contained in:
Héctor Ramón Jiménez 2025-04-29 23:01:45 +02:00
parent fae95d6095
commit 613c706a39
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 45 additions and 6 deletions

View file

@ -604,6 +604,18 @@ impl Renderer {
}
let _ = ManuallyDrop::into_inner(render_pass);
debug::layers_rendered(|| {
self.layers
.iter()
.filter(|layer| {
!layer.is_empty()
&& physical_bounds
.intersection(&(layer.bounds * scale_factor))
.is_some_and(|viewport| viewport.snap().is_some())
})
.count()
});
}
}