diff options
author | 2024-11-21 16:26:17 -0800 | |
---|---|---|
committer | 2024-11-21 16:26:17 -0800 | |
commit | 3fc57b7d95f2cd1d8c7bef06547c55195d4e032a (patch) | |
tree | b65138fc4913efa5c30f09e853fcfc0b2477e93f /wgpu | |
parent | 2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3 (diff) | |
download | iced-3fc57b7d95f2cd1d8c7bef06547c55195d4e032a.tar.gz iced-3fc57b7d95f2cd1d8c7bef06547c55195d4e032a.tar.bz2 iced-3fc57b7d95f2cd1d8c7bef06547c55195d4e032a.zip |
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.
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/window/compositor.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs index 56f33b50..4fe689cf 100644 --- a/wgpu/src/window/compositor.rs +++ b/wgpu/src/window/compositor.rs @@ -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], |