Héctor Ramón Jiménez
085c8fae8d
Add screenshot helpers to iced_test
2025-11-12 00:53:10 +01:00
Héctor Ramón Jiménez
ca23e6f793
Update wgpu to 27
2025-10-31 14:14:33 +01:00
Héctor Ramón Jiménez
f0d0d3d114
Try to receive from worker in image::cache::trim
2025-10-29 13:39:51 +01:00
Héctor Ramón Jiménez
59fe141efd
Add debug log to image cache eviction
2025-10-28 21:47:14 +01:00
Héctor Ramón Jiménez
74c8641e2c
Fix missing feature flags in graphics::image
2025-10-28 21:31:15 +01:00
Héctor Ramón Jiménez
867fe819c0
Add explicit error handling to image loading
2025-10-28 21:19:25 +01:00
Héctor Ramón Jiménez
7c11ccb046
Move core::Image::clip_bounds to graphics::Image
2025-10-28 19:44:46 +01:00
Héctor Ramón Jiménez
3cc5bd5dbc
Use shorter names for width and height in image::atlas
2025-10-28 10:20:38 +01:00
Héctor Ramón Jiménez
67730a8bfa
Improve readability of image::atlas padding logic
2025-10-28 10:14:36 +01:00
Héctor Ramón Jiménez
2bb7b50421
Fix a bunch of bogus calculations in image::atlas
2025-10-28 09:56:26 +01:00
Héctor Ramón Jiménez
ce126f5ea3
Implement atlas padding in image pipeline
2025-10-27 16:45:09 +01:00
Héctor Ramón Jiménez
0001b18408
Remove redundant cfg in image::cache
2025-10-27 00:01:39 +01:00
Héctor Ramón Jiménez
71a8bc17d0
Remove all worker calls in Wasm
2025-10-26 21:57:30 +01:00
Héctor Ramón Jiménez
22488c537c
Create worker module to contain all the feature flag chaos
2025-10-26 21:48:10 +01:00
Héctor Ramón Jiménez
b408961d77
Add side-channel to image worker for early exiting
2025-10-26 20:23:26 +01:00
Héctor Ramón Jiménez
44cfb27e41
Fix cache eviction logic of active image allocations
2025-10-26 09:18:19 +01:00
Héctor Ramón Jiménez
44e68aa4b6
Add border radius support for image
2025-10-25 23:00:25 +02:00
Héctor Ramón Jiménez
23039e758e
Introduce explicit image::allocate API
2025-10-25 22:59:30 +02:00
Héctor Ramón Jiménez
6fa54f7f6b
Decode on the fly in gallery example
...
Use `release` mode. Image decoding is terribly slow
in `debug` mode!
2025-10-25 22:59:30 +02:00
Héctor Ramón Jiménez
1b51364154
Fix standalone svg feature
2025-10-25 22:59:30 +02:00
Héctor Ramón Jiménez
5216253998
Fall back to synchronous rendering on Wasm
2025-10-25 22:59:29 +02:00
Héctor Ramón Jiménez
47a3fc0b9a
Avoid moving the Atlas into on_submitted_work_done
2025-10-25 22:59:29 +02:00
Héctor Ramón Jiménez
cb8d2710da
Draft multi-threaded image rendering in iced_wgpu
2025-10-25 22:59:29 +02:00
Héctor Ramón Jiménez
d3e9547079
Implement basic layer merging for graphics::layer::Stack
2025-08-16 23:20:43 +02:00
Héctor Ramón Jiménez
d5cd0a6de9
Fix lints for Rust 1.89 and bump MSRV to 1.88
2025-08-07 22:38:22 +02:00
Héctor Ramón Jiménez
9d4e849a0e
Revert "Merge pull request #2962 from iced-rs/fix/blurry-quads"
...
This reverts commit 03326b955b , reversing
changes made to 7c5a4bc465 .
2025-05-28 22:51:10 +02:00
Héctor Ramón Jiménez
15aa94c0f1
Try to align quad and image primitives in iced_wgpu
2025-05-26 23:59:15 +02:00
Héctor Ramón Jiménez
2d2888ee03
Store wgpu::Backend in image::Atlas
2025-05-04 22:46:51 +02:00
Shan
16703ccdef
Hack to fix GL-specific backend issue where if image atlas grows to a layer depth of 6, GL interprets the texture as a cube map vs a 2d texture array
2025-05-01 09:10:53 -07:00
Héctor Ramón Jiménez
6ebf386249
Fix missing is_empty in image::Batch
2025-04-30 01:30:53 +02:00
Héctor Ramón Jiménez
175a53bc86
Rename end_frame to trim in iced_wgpu
2025-03-24 20:22:17 +01:00
Héctor Ramón Jiménez
576dd22733
Split local state from Engine in iced_wgpu
2025-03-24 20:22:15 +01:00
Héctor Ramón Jiménez
fb2544021a
Update wgpu to 24 and use cryoglyph fork
...
Co-authored-by: Winfried Baumann <codewing@web.de>
2025-03-09 01:38:34 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt
2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
ebc4e17ba8
Update wgpu to 23.0
2024-11-05 13:32:14 +01:00
Héctor Ramón Jiménez
a5e69cfb5f
Update wgpu to 22.0
2024-09-20 00:14:47 +02:00
Héctor Ramón Jiménez
aed9a03e3c
Update wgpu to 0.20.1
2024-09-20 00:14:46 +02:00
Jovansonlee Cesar
0c502801e3
Make rendering of svg that has text work out of the box ( #2560 )
...
* fix: load system fonts to usvg font_db, this will make rendering of text in svg that has it
* feat: add an example that renders svg that has text on it
* Initialize `fontdb` only once for `vector` images
* Remove `svg_text` example
* Set `fontdb` for `usvg::Options` in `tiny_skia::vector`
---------
Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-09-13 21:43:00 +00:00
Héctor Ramón Jiménez
d4b08462e5
Introduce Svg struct in core::svg
2024-08-04 04:52:55 +02:00
Héctor Ramón Jiménez
92bd3ecd6b
Introduce Image struct in core::image
2024-08-04 04:30:12 +02:00
Héctor Ramón Jiménez
0ceee1cf3a
Implement image support for canvas widget
2024-08-04 03:28:43 +02:00
Héctor Ramón
616689ca54
Update cosmic-text and resvg ( #2416 )
...
* Update `cosmic-text`, `glyphon`, and `resvg`
* Fix slow font fallback with `Shaping::Basic` in `cosmic-text`
* Update `cosmic-text` and `resvg`
* Update `cosmic-text`
* Fix `SelectAll` action in `editor`
* Fix some panics in `graphics::text::editor`
* Remove empty `if` statement in `tiny_skia::vector`
* Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-07-17 13:00:00 +02:00
Héctor Ramón Jiménez
547446f0de
Fix windows fighting over shared image::Cache
...
Image caches are local to each window now.
2024-05-06 12:23:44 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg
2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
610394b695
Rename global_scale to scale in wgpu::image
2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals
2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
...
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
...
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
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
493c36ac71
Make image Cache eviction strategy less aggressive in iced_wgpu
...
Instead of trimming unconditionally at the end of
a frame, we now trim the cache only when there is a
cache miss.
This way, images that are not visible but still a
part of the layout will stay cached. Eviction will
only happen when the images are not a part of the
UI for two consectuive frames.
2024-04-24 21:29:30 +02:00