Capture screen in BGRA8 and render it in capture example app

This commit is contained in:
Antonio Scandurra 2022-08-31 11:02:48 +02:00
parent 37da841716
commit 79a7a0e0e7
10 changed files with 156 additions and 71 deletions

View file

@ -397,14 +397,18 @@ impl Layer {
}
}
pub fn images(&self) -> &[Image] {
self.images.as_slice()
}
fn push_surface(&mut self, surface: Surface) {
if can_draw(surface.bounds) {
self.surfaces.push(surface);
}
}
pub fn images(&self) -> &[Image] {
self.images.as_slice()
pub fn surfaces(&self) -> &[Surface] {
self.surfaces.as_slice()
}
fn push_shadow(&mut self, shadow: Shadow) {