summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Ian Douglas Scott <idscott@system76.com>2024-11-21 16:26:17 -0800
committerLibravatar Ian Douglas Scott <idscott@system76.com>2024-11-21 16:26:17 -0800
commit3fc57b7d95f2cd1d8c7bef06547c55195d4e032a (patch)
treeb65138fc4913efa5c30f09e853fcfc0b2477e93f /graphics
parent2a2e20b0a35bcf4da9ac34ab2f664485c4e1dbe3 (diff)
downloadiced-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 'graphics')
-rw-r--r--graphics/src/compositor.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/graphics/src/compositor.rs b/graphics/src/compositor.rs
index 3026bead..0b862bdb 100644
--- a/graphics/src/compositor.rs
+++ b/graphics/src/compositor.rs
@@ -90,7 +90,6 @@ pub trait Compositor: Sized {
fn screenshot<T: AsRef<str>>(
&mut self,
renderer: &mut Self::Renderer,
- surface: &mut Self::Surface,
viewport: &Viewport,
background_color: Color,
overlay: &[T],
@@ -201,7 +200,6 @@ impl Compositor for () {
fn screenshot<T: AsRef<str>>(
&mut self,
_renderer: &mut Self::Renderer,
- _surface: &mut Self::Surface,
_viewport: &Viewport,
_background_color: Color,
_overlay: &[T],