Capture screen in BGRA8 and render it in capture
example app
This commit is contained in:
parent
37da841716
commit
79a7a0e0e7
10 changed files with 156 additions and 71 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue