Commit graph

48 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
940a47eafd
Revert "Use softbuffer fork with owned pixel buffer"
This reverts commit 92d61e5c59.

The owned pixel buffer zeroes the data in some platforms. `softbuffer`
will need some first-class support for damage regions.
2023-04-05 19:30:07 +02:00
Héctor Ramón Jiménez
92d61e5c59
Use softbuffer fork with owned pixel buffer 2023-04-05 19:23:48 +02:00
Héctor Ramón Jiménez
e134a82f4c
Switch debug mode to fade old primitives and display damage in iced_tiny_skia 2023-04-05 18:42:27 +02:00
Héctor Ramón Jiménez
4ede482ab5
Present new frame only when damaged in iced_tiny_skia 2023-04-05 18:41:40 +02:00
Héctor Ramón Jiménez
1bba9a080f
Fix Svg and Image primitives in iced_tiny_skia 2023-04-05 05:49:30 +02:00
Héctor Ramón Jiménez
f8cd1faa28
Group damage regions by area increase 2023-04-05 05:40:44 +02:00
Héctor Ramón Jiménez
6270c33ed9
Keep playing with incremental rendering (still very slow) 2023-04-04 20:47:53 +02:00
Héctor Ramón Jiménez
0f7abffc0e
Draft (very) basic incremental rendering for iced_tiny_skia 2023-04-04 02:08:02 +02:00
Héctor Ramón Jiménez
6fae8bf6cb
Implement Frame::clip for iced_tiny_skia 2023-04-04 01:56:56 +02:00
Héctor Ramón Jiménez
04c0ba04bf
Warn about invalid paths in iced_tiny_skia instead of panicking 2023-04-04 01:56:50 +02:00
Héctor Ramón Jiménez
0b459c8e24
Introduce font::Stretch 2023-03-30 02:01:20 +02:00
Héctor Ramón Jiménez
707de9d788
Introduce support for Font attributes 2023-03-30 00:56:00 +02:00
Héctor Ramón Jiménez
5f9e7f6cb9
Update cosmic-text to latest 🎉 2023-03-19 14:52:30 +01:00
Héctor Ramón Jiménez
ea50ec8df1
Trim text Buffer cache every frame in iced_wgpu and iced_tiny_skia 2023-03-17 19:58:42 +01:00
Héctor Ramón Jiménez
c8f637fc16
Fix panic rendering an out of bounds clip in iced_tiny_skia 2023-03-17 19:35:57 +01:00
Héctor Ramón Jiménez
424ac81773
Implement color filter support for Primitive::Svg in iced_tiny_skia 2023-03-09 04:48:35 +01:00
Héctor Ramón Jiménez
24c3d20a76
Tell clippy to go learn the borrow rules 2023-03-07 06:34:27 +01:00
Héctor Ramón Jiménez
0850f52d8c
Use ceil to avoid cut text in iced_tiny_skia
This won't be necessary once we reuse the buffers from layouting by
leveraging layout linearity.
2023-03-07 06:23:09 +01:00
Héctor Ramón Jiménez
a8d55ceb82
Trim raster cache in iced_tiny_skia 2023-03-07 06:15:05 +01:00
Héctor Ramón Jiménez
5b3977daf6
Implement vector pipeline in iced_tiny_skia 2023-03-07 06:09:51 +01:00
Héctor Ramón Jiménez
bb49e17cab
Implement raster pipeline in iced_tiny_skia 2023-03-07 05:06:26 +01:00
Héctor Ramón Jiménez
99e0a71504
Rename iced_native to iced_runtime 2023-03-05 06:35:20 +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
6cc48b5c62
Move Canvas and QRCode to iced crate
Rename `canvas` modules to `geometry` in graphics subcrates
2023-03-03 04:57:55 +01:00
Héctor Ramón Jiménez
d13d19ba35
Rename canvas::frame to canvas in iced_wgpu 2023-03-03 04:00:44 +01:00
Héctor Ramón Jiménez
bbeaf10c04
Mark Primitive as non-exhaustive in iced_graphics 2023-03-03 03:55:07 +01:00
Héctor Ramón Jiménez
868f79d22e
Reuse ClipMask in iced_tiny_skia 2023-03-02 00:40:36 +01:00
Héctor Ramón Jiménez
119cf2ecd1
Remove magic boolean in into_paint 2023-03-01 21:48:27 +01:00
Héctor Ramón Jiménez
838fd96212
Disable anti_alias for Frame::fill_rectangle in iced_tiny_skia 2023-03-01 21:47:15 +01:00
Héctor Ramón Jiménez
5c0427edbb
Fix Clip primitive translation in iced_tiny_skia 2023-03-01 21:41:32 +01:00
Héctor Ramón Jiménez
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia 2023-03-01 21:34:26 +01:00
Héctor Ramón Jiménez
fd06de5d9c
Use get_image_uncached in iced_tiny_skia
... since we are not reusing the `SwashCache`
2023-02-28 03:48:34 +01:00
Héctor Ramón Jiménez
151daf95b7
Remove unnecessary cast_slice in iced_tiny_skia 2023-02-27 16:30:54 +01:00
Héctor Ramón Jiménez
c1ff803b8f
Implement basic glyph cache in iced_tiny_skia 2023-02-27 16:28:19 +01:00
Héctor Ramón Jiménez
3105ad2e00
Remove useless f32 conversion in iced_tiny_skia 2023-02-27 03:04:05 +01:00
Héctor Ramón Jiménez
8750d83337
Short-circuit rectangle path building in iced_tiny_skia 2023-02-27 03:02:13 +01:00
Héctor Ramón Jiménez
37ce30f360
Use kurbo to approximate arcs in iced_tiny_skia 2023-02-27 02:58:02 +01:00
Héctor Ramón Jiménez
4e615a65ca
Fix clippy lints 2023-02-27 01:12:06 +01:00
Héctor Ramón Jiménez
fbb14bf9b8
Implement border_radius support for quads in iced_tiny_skia 2023-02-27 00:47:53 +01:00
Héctor Ramón Jiménez
53573cf7cf
Draw debug overlay in iced_tiny_skia 2023-02-26 23:59:00 +01:00
Héctor Ramón Jiménez
4067c427db
Fix glyphs with color mask in iced_tiny_skia 2023-02-26 23:49:58 +01:00
Héctor Ramón Jiménez
3386402f5a
Implement text alignment support in iced_tiny_skia 2023-02-26 23:44:50 +01:00
Héctor Ramón Jiménez
64fb722dfe
Draft text support in iced_tiny_skia 2023-02-26 23:40:17 +01:00
Héctor Ramón Jiménez
744f3028f4
Use Surface::buffer directly for drawing in iced_tiny_skia
... with a nice little color trick :^)
2023-02-26 00:50:25 +01:00
Héctor Ramón Jiménez
df5d66423d
Draft support for Quad and Clip primitives in iced_tiny_skia 2023-02-26 00:38:46 +01:00
Héctor Ramón Jiménez
445b31c6c5
Resize Surface::buffer instead of reallocating in iced_tiny_skia 2023-02-25 21:06:58 +01:00
Héctor Ramón Jiménez
535d7a4d57
Implement basic presentation with softbuffer for iced_tiny_skia 2023-02-25 16:05:42 +01:00
Héctor Ramón Jiménez
8c373cd497
Scaffold iced_tiny_skia and connect it to iced_renderer 2023-02-25 15:38:25 +01:00