mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
In this PR we moved global alpha handling using temporary layers to mutation of paint in vello_cpu (we were already doing this in vello classic). This + not using temporary layer for SrcOver (default and most common composition operation) allows us to remove most temporary layers from `with_composition`. This slightly improves performance of vello backend, but drastically improves performance of vello_cpu. We are now able to render bunnymark (100 bunnies) with 60 FPS. In the future we could cache current layer and change it when compositing operation changes, although that would complicate clips, so improvement is questionable. Testing: Existing WPT tests for functionality, but we do not have any performance tests. Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> |
||
---|---|---|
.. | ||
backend.rs | ||
canvas_data.rs | ||
canvas_paint_thread.rs | ||
Cargo.toml | ||
lib.rs | ||
peniko_conversions.rs | ||
raqote_backend.rs | ||
vello_backend.rs | ||
vello_cpu_backend.rs |