Remove surface argument of Compositor::screenshot
This argument was completely ignored by the wgpu renderer, and used only for the `clip_mask` by the `tiny_skia` renderer. I believe creating a new clip mask is correct. This way it's possible to render offscreen without needing a surface.
This commit is contained in:
parent
2a2e20b0a3
commit
3fc57b7d95
5 changed files with 22 additions and 32 deletions
|
|
@ -370,7 +370,6 @@ impl graphics::Compositor for Compositor {
|
|||
fn screenshot<T: AsRef<str>>(
|
||||
&mut self,
|
||||
renderer: &mut Self::Renderer,
|
||||
_surface: &mut Self::Surface,
|
||||
viewport: &Viewport,
|
||||
background_color: Color,
|
||||
overlay: &[T],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue