Commit graph

63 commits

Author SHA1 Message Date
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10 2023-07-12 08:59:07 +02:00
Héctor Ramón Jiménez
c528f2129e
Use proper gamma correction mode in image::Atlas::grow 2023-05-31 21:45:12 +02:00
Héctor Ramón Jiménez
f1b259a28f
Avoid gamma correction when web-colors is enabled for images 2023-05-31 21:42:39 +02:00
Héctor Ramón Jiménez
0ef5ab6c84
Remove dbg! leftovers in image::atlas 2023-05-11 20:19:37 +02:00
Héctor Ramón Jiménez
f02f0c01ea
Fix race condition when growing an image::Atlas 2023-05-11 20:18:36 +02:00
Héctor Ramón Jiménez
8e8808f0e1
Merge branch 'master' into advanced-text 2023-05-02 06:40:48 +02:00
Héctor Ramón Jiménez
9c63eb7df5
Update tiny-skia and resvg 2023-04-26 16:46:27 +02:00
David Huculak
cbb2ba38fa remove unused import 2023-04-20 21:38:52 -04:00
David Huculak
8122904ca4 wgpu 0.16 2023-04-20 21:28:47 -04:00
Elham Aryanpur
d5453c62e9
Update wgpu to 0.15 2023-04-13 05:40:23 +02:00
Héctor Ramón Jiménez
c0431aedd3
Update wgpu and cosmic-text 2023-04-08 04:47:05 +02:00
Héctor Ramón Jiménez
3a26baa564
Remove image abstractions in iced_graphics 2023-03-07 03:47:49 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
363966ee9e
Refactor image::Pipeline into prepare and render architecture 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
438f97a6d0
Use RGBA texture for image and svg pipelines 2022-11-05 03:20:00 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Ian Douglas Scott
2c7c42ee93
Move image/svg handling into iced_graphics
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.
2022-11-05 03:19:37 +01:00
Héctor Ramón Jiménez
2065a40f64
Fix clippy lints for all crates and features
... and check those in CI as well!
2022-07-09 18:43:05 +02:00
Héctor Ramón Jiménez
33a24b5821
Run cargo fmt 2022-07-09 17:07:40 +02:00
Poly
15f794b7a8
Address Clippy lints 2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
adce9e0421
Update Rust edition to 2021 🎉 2022-02-09 17:57:44 +07:00
Héctor Ramón Jiménez
2cc7e0a449
Fix Operation::perform in image::raster
Flipping diagonally isn't the same as flipping each axis individually 😅
2021-09-30 16:51:42 +07:00
Héctor Ramón Jiménez
60070eef27
Remove absolute module path leftovers in image::raster 2021-09-30 16:20:04 +07:00
Héctor Ramón Jiménez
21d138aa28
Refactor Orientation into Operation in image::raster 2021-09-30 16:15:15 +07:00
Héctor Ramón Jiménez
86d6d53cfa
Remove unnecessary absolute module paths in image::raster 2021-09-30 14:35:10 +07:00
Héctor Ramón Jiménez
03fee3106f
Introduce Orientation enum in image::raster 2021-09-30 14:24:23 +07:00
Mateusz Czapliński
82e3e316dd Honor Exif orientation in iced_wgpu::Image 2021-09-30 00:28:56 +02:00
Héctor Ramón Jiménez
73f2881568
Update resvg to 0.18 in iced_wgpu 2021-09-27 14:23:22 +07:00
Poly
18753b77fc wgpu: Update to 0.10 2021-08-19 03:06:38 +02:00
aentity
665422e256 Use ceil on svg dimensions, fix svg memory usage
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.
2021-07-21 02:26:53 -04:00
Aaron Housh
ae484429d3 Merge branch 'hecrj:master' into upgrade-wgpu 2021-05-19 07:14:26 -07:00
Zak
77a17cde83 This commit optimizes the function used to converg rgba pixels into bgra pixels. 2021-05-11 22:41:55 +01:00
Dispersia
9a2c78c405 Upgrade wgpu 2021-04-11 18:55:57 -07:00
Greg V
8f126c212b Add image format options to reduce code bloat, fixes #376 2021-02-13 15:53:24 +01:00
Greg V
81f37123ad Update resvg to 0.12 2020-12-19 01:24:40 +01:00
Héctor Ramón Jiménez
209056e1cd Fix deprecation warnings from image 2020-11-20 10:29:11 +01:00
Héctor Ramón Jiménez
9d4f664c94 Update bytemuck and remove zerocopy in iced_wgpu 2020-11-10 20:06:24 +01:00
Héctor Ramón Jiménez
44118263b5 Add labels to iced_wgpu internals 2020-08-31 14:41:41 +02:00
Héctor Ramón Jiménez
bb5f034e08 Fix offset calculation in image::Atlas 2020-08-27 14:45:08 +02:00
Héctor Ramón Jiménez
ecbee66bd6 Fix layers initialization in image::Atlas 2020-08-27 14:44:51 +02:00
Héctor Ramón Jiménez
83e037829c Update image pipeline in iced_wgpu 2020-08-27 13:41:00 +02:00
Héctor Ramón Jiménez
d807ef367e Update wgpu to 0.5 in iced_wgpu 🎉 2020-04-07 05:48:21 +02:00
Héctor Ramón Jiménez
ae009158cc Implement svg::Handle::from_memory
Useful if you already have your SVG data in memory.
2020-03-31 00:39:18 +02:00
Soham Chowdhury
1841015428 Add support for loading already-decoded image pixels 2020-02-29 07:32:42 +05:30
Héctor Ramón Jiménez
4e7159c22c Stop creating image pipeline when unnecessary 2020-02-28 14:38:42 +01:00
Héctor Ramón Jiménez
bb397cc668 Move Debug implementation for vector::Svg 2020-02-26 20:49:40 +01:00
Héctor Ramón Jiménez
271725faa5 Derive Debug for raster::Memory 2020-02-26 20:47:27 +01:00
Héctor Ramón Jiménez
d06d06e050 Deallocate atlas entries and remove padding 2020-02-26 20:10:19 +01:00
Héctor Ramón Jiménez
48d70280eb Fix multiple issues from the refactoring
- Update texture view on grow
- Fix atlas texture coordinates
- Fix fragmented uploads
2020-02-26 18:50:13 +01:00
Héctor Ramón Jiménez
c58d94f3fd Avoid creating a vertex buffer every frame 2020-02-26 12:55:04 +01:00