summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-05 23:59:21 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-05 23:59:21 +0200
commit6d3e1d835e1688fbc58622a03a784ed25ed3f0e1 (patch)
treeb1a14b0ec7b2da4368d5c98850fe9e9eebc5490a /tiny_skia
parent4a356cfc16f3b45d64826732009d9feeac016b28 (diff)
downloadiced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.tar.gz
iced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.tar.bz2
iced-6d3e1d835e1688fbc58622a03a784ed25ed3f0e1.zip
Decouple caching from layering and simplify everything
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/geometry.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tiny_skia/src/geometry.rs b/tiny_skia/src/geometry.rs
index 76482e12..f1d11dce 100644
--- a/tiny_skia/src/geometry.rs
+++ b/tiny_skia/src/geometry.rs
@@ -195,8 +195,8 @@ impl geometry::frame::Backend for Frame {
self.transform = self.stack.pop().expect("Pop transform");
}
- fn draft(&mut self, size: Size) -> Self {
- Self::new(size)
+ fn draft(&mut self, clip_bounds: Rectangle) -> Self {
+ Self::new(clip_bounds.size())
}
fn paste(&mut self, frame: Self, at: Point) {