summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image/vector.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make rendering of svg that has text work out of the box (#2560)Libravatar Jovansonlee Cesar2024-09-131-9/+21
| | | | | | | | | | | | | | | * 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>
* Update `cosmic-text` and `resvg` (#2416)Libravatar Héctor Ramón2024-07-171-21/+14
| | | | | | | | | | | | | | | | | * 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`
* Make image `Cache` eviction strategy less aggressive in `iced_wgpu`Libravatar Héctor Ramón Jiménez2024-04-241-0/+8
| | | | | | | | | | | 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.
* Use `rustc-hash` for most of our `HashMap` and `HashSet` instancesLibravatar Héctor Ramón Jiménez2024-04-011-5/+5
|
* Convert SVG text nodes for in-memory SVGs in `iced_wgpu`Libravatar Héctor Ramón Jiménez2023-12-111-20/+17
|
* Fix import styling in `iced_wgpu::image::vector`Libravatar Héctor Ramón Jiménez2023-12-111-1/+1
|
* implement svg text fix for native rendererLibravatar Cory Frenette2023-12-101-5/+18
| | | | Signed-off-by: Cory Frenette <cory@frenette.dev>
* Revert "Chore: Apply clippy map transformations"Libravatar Héctor Ramón Jiménez2023-09-201-1/+1
| | | | This reverts commit c997aad85d7ee6e77085e50e5e599002549d228f.
* Merge pull request #2090 from nyurik/mappingLibravatar Héctor Ramón2023-09-191-1/+1
|\ | | | | Chore: Apply clippy map transformations
| * Chore: Apply clippy map transformationsLibravatar Yuri Astrakhan2023-09-191-1/+1
| | | | | | | | Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
* | Chore: Inline format args for ease of readingLibravatar Yuri Astrakhan2023-09-191-1/+1
|/ | | | A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
* Improve code style in `vector` modulesLibravatar Héctor Ramón Jiménez2023-07-121-11/+12
|
* Upgrade resvg to 0.34 and tiny_skia to 0.10Libravatar Alec Deason2023-07-121-10/+21
|
* Fix race condition when growing an `image::Atlas`Libravatar Héctor Ramón Jiménez2023-05-111-3/+2
|
* Update `tiny-skia` and `resvg`Libravatar Héctor Ramón Jiménez2023-04-261-2/+4
|
* Remove `image` abstractions in `iced_graphics`Libravatar Héctor Ramón Jiménez2023-03-071-0/+181
|
* Move image/svg handling into `iced_graphics`Libravatar Ian Douglas Scott2022-11-051-173/+0
| | | | | | | | | The `TextureStore` trait is implemented by the atlas, and can also be implemented in the glow renderer or in a software renderer. The API here may be improved in the future, but API stability is presumably not a huge issue since these types will only be used by renderer backends.
* Address Clippy lintsLibravatar Poly2022-07-091-2/+2
|
* Update `resvg` to `0.18` in `iced_wgpu`Libravatar Héctor Ramón Jiménez2021-09-271-11/+21
|
* Use ceil on svg dimensions, fix svg memory usageLibravatar aentity2021-07-211-2/+3
| | | | | | | | Calls ceil() on dimension bounds as this appears fix svg memory unbounded usage because no longer cache miss. The height and width return from resvg seem to always be ceiling of float dimensions, so we try to match.
* This commit optimizes the function used to converg rgba pixels into bgra pixels.Libravatar Zak2021-05-111-17/+5
|
* Update resvg to `0.12`Libravatar Greg V2020-12-191-16/+29
|
* Update `bytemuck` and remove `zerocopy` in `iced_wgpu`Libravatar Héctor Ramón Jiménez2020-11-101-3/+1
|
* Update `wgpu` to `0.5` in `iced_wgpu` :tada:Libravatar Héctor Ramón Jiménez2020-04-071-1/+3
|
* Implement `svg::Handle::from_memory`Libravatar Héctor Ramón Jiménez2020-03-311-3/+13
| | | | Useful if you already have your SVG data in memory.
* Stop creating image pipeline when unnecessaryLibravatar Héctor Ramón Jiménez2020-02-281-1/+1
|
* Move `Debug` implementation for `vector::Svg`Libravatar Héctor Ramón Jiménez2020-02-261-11/+6
|
* Deallocate atlas entries and remove paddingLibravatar Héctor Ramón Jiménez2020-02-261-2/+10
|
* Refactor texture atlasLibravatar Héctor Ramón Jiménez2020-02-261-17/+17
| | | | | | - Split into multiple modules - Rename some concepts - Change API details
* Implemented automatic deallocation of texture space for dropped allocationsLibravatar Malte Veerman2020-02-251-7/+1
|
* Updated shaders and removed debug_stub_derive dependencyLibravatar Malte Veerman2020-02-251-8/+16
|
* Batch image draw calls into one with multiple instancesLibravatar Malte Veerman2020-02-251-11/+4
|
* Implement allocating large images across multiple texture array layers.Libravatar Malte Veerman2020-02-251-16/+11
|
* Use array of atlases instead of one growing indefinitely.Libravatar Malte Veerman2020-02-251-118/+31
|
* Some small debug changesLibravatar Malte Veerman2020-02-251-11/+8
|
* Merged image and svg texture atlases into one owned by the image pipeline.Libravatar Malte Veerman2020-02-251-63/+15
|
* Implemented a texture atlas for images and svgs.Libravatar Malte Veerman2020-02-251-49/+149
|
* Avoid rasterizing SVG when a dimension is 0Libravatar Héctor Ramón Jiménez2019-12-211-0/+4
|
* Cache `Svg` load result properlyLibravatar Héctor Ramón Jiménez2019-12-151-15/+20
| | | | This avoids trying to reload the file constantly on every frame.
* Add `svg` exampleLibravatar Héctor Ramón Jiménez2019-12-151-1/+1
|
* Rerasterize SVGs when resized and refactor a bitLibravatar Héctor Ramón Jiménez2019-12-151-0/+187