Commit graph

198 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
45254ab88c
Use Bytes as the Container of ImageBuffer
Since we don't need to mutate images once loaded,
we avoid unnecessary extra allocations.
2024-05-01 00:55:49 +02:00
Héctor Ramón Jiménez
b5b78d505e
Introduce canvas::Cache grouping
Caches with the same `Group` will share their text
atlas!
2024-04-30 07:57:54 +02:00
Héctor Ramón Jiménez
43aafb7b79
Clip quad damage with layer bounds in iced_tiny_skia 2024-04-10 20:31:44 +02:00
Héctor Ramón Jiménez
1e8554bf02
Sort damage by distance from origin in iced_graphics::damage 2024-04-10 20:23:07 +02:00
Héctor Ramón Jiménez
fdd9896dc5
Track image damage in iced_tiny_skia 2024-04-10 19:55:27 +02:00
Héctor Ramón Jiménez
32cd456fb9
Account for transformation in Text::visible_bounds 2024-04-10 16:26:55 +02:00
Héctor Ramón Jiménez
1e802e776c
Reintroduce damage tracking for iced_tiny_skia 2024-04-10 15:21:42 +02:00
Héctor Ramón Jiménez
6ad5bb3597
Port iced_tiny_skia to new layering architecture 2024-04-09 22:25:16 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture 2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything 2024-04-05 23:59:21 +02:00
Héctor Ramón
c7a4fad4a2
Merge pull request #2357 from iced-rs/wgpu/use-staging-belt
Use a `StagingBelt` in `iced_wgpu` for regular buffer uploads
2024-03-30 23:49:26 +01:00
Héctor Ramón Jiménez
faa53647cc
Replace xxhash-rust with rustc-hash 2024-03-30 15:57:50 +01:00
Daniel Yoon
39f57a258e Make tiny-skia equivalent 2024-03-26 13:02:04 +11:00
Héctor Ramón Jiménez
4f5b63f1f4
Reintroduce backend selection through ICED_BACKEND env var 2024-03-24 08:04:28 +01:00
Héctor Ramón Jiménez
441e9237cd
Rename compositor::Renderer to Default 2024-03-22 19:35:19 +01:00
Héctor Ramón Jiménez
5137d655e6
Allow custom renderers in Program and Application 2024-03-22 07:09:51 +01:00
Héctor Ramón Jiménez
4f2f40c68b
Fix standalone compilation of iced_widget crate 2024-03-22 05:41:15 +01:00
Héctor Ramón Jiménez
1f13a91361
Make iced_tiny_skia optional with a tiny-skia feature 2024-03-22 05:27:31 +01:00
Héctor Ramón Jiménez
53a183fe0d
Restore canvas::Frame API 2024-03-22 01:35:14 +01:00
Héctor Ramón Jiménez
3645d34d6a
Implement composable, type-safe renderer fallback 2024-03-21 22:27:17 +01:00
Héctor Ramón Jiménez
bad3b1ac47
Show name of current Theme in clock example 2024-03-16 16:52:21 +01:00
Héctor Ramón Jiménez
ecf42b97df
Fix block_on in iced_wgpu hanging Wasm builds 2024-03-07 23:25:24 +01:00
Héctor Ramón Jiménez
331cfc1102
Fix iced_tiny_skia clipping line strokes 2024-02-22 17:35:28 +01:00
Daniel Yoon
7a572655c1
Fix text transparency in iced_tiny_skia 2024-02-15 03:10:15 +01:00
Héctor Ramón Jiménez
c6cf2bc521
Fix clipping of text in iced_tiny_skia 2024-02-11 04:03:01 +01:00
Mohammad AlSaleh
5bd93181f3
tiny_skia: Add a capacity limit to GlyphCache
* Trim the cache if `recently_used` size reaches the limit, even if a
   trim interval hasn't passed.
 * Shrink `entries` and `recently_used` to the limit when trimming.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-02-07 14:27:35 +01:00
Héctor Ramón Jiménez
f4d6648601
Introduce with_transformation to Renderer trait 2024-02-02 02:24:45 +01:00
Héctor Ramón Jiménez
a6e91d13d5
Allow only uniform scaling in Transformation 2024-02-02 01:57:03 +01:00
Héctor Ramón Jiménez
5467c19c80
Replace Primitive::Translate with Transform 2024-02-02 01:53:23 +01:00
Josh Megnauth
cdc42d6464
Assert dimensions of quads are normal in iced_tiny_skia 2024-01-31 21:06:20 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow 2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
4d502012b3
Skip transparent shadows in iced_tiny_skia 2024-01-20 12:39:52 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad 2024-01-20 12:25:07 +01:00
Héctor Ramón Jiménez
b7b457a575
Make shadow optional in renderer::Quad 2024-01-20 12:11:18 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
c929e6f5dd
Use Self::Surface in Compositor implementors 2024-01-18 10:56:02 +01:00
Héctor Ramón Jiménez
3cf8f77d65
Resize surface in configure_surface in iced_tiny_skia 2024-01-18 10:52:25 +01:00
Héctor Ramón Jiménez
150ce65e20
Nest age declaration inside last_primitives 2024-01-18 10:43:52 +01:00
Héctor Ramón Jiménez
b6b3e9b9f9
Avoid stacking new primitives when undamaged 2024-01-18 10:42:02 +01:00
Héctor Ramón Jiménez
4b7744b980
Support out-of-order Buffer ages in iced_tiny_skia 2024-01-18 10:35:27 +01:00
Héctor Ramón Jiménez
5fc49edc55
Make compatible_window mandatory in Compositor 2024-01-18 10:06:30 +01:00
Héctor Ramón Jiménez
8bf2386972
Remove Compositor window generic
And update `glyphon` and `window_clipboard`
2024-01-18 09:55:27 +01:00
Ian Douglas Scott
7289b6091b WIP raw-window-handle 0.6 2024-01-16 21:34:38 -08:00
Ian Douglas Scott
ff268c8c42 Update to softbuffer 0.3, tracking up to age sets of primitives 2024-01-17 07:46:33 -08:00
Héctor Ramón Jiménez
5d4c55c07a
Fix paint not being transformed in iced_tiny_skia 2024-01-17 15:53:08 +01:00
Héctor Ramón Jiménez
acee3b030b
Fix paths with negative coordinates in iced_tiny_skia 2024-01-17 15:31:29 +01:00
Héctor Ramón Jiménez
4cb53a6e22
Implement vectorial text support for iced_tiny_skia 2024-01-17 14:49:14 +01:00
Héctor Ramón Jiménez
5aa741a177
Apply scaling during Frame::fill_text in iced_tiny_skia 2024-01-17 13:27:39 +01:00