diff options
author | sagudev <16504129+sagudev@users.noreply.github.com> | 2025-04-23 09:32:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-23 07:32:47 +0000 |
commit | 73b778e67f2f399846af57a2c93e22da05bb7657 (patch) | |
tree | 447ef0a21762dbac581a8113fe4bb28520bc508d /components/shared/net/Cargo.toml | |
parent | b6967fc4c8cc2513a85c535d87c28f5451f7de7e (diff) | |
download | servo-73b778e67f2f399846af57a2c93e22da05bb7657.tar.gz servo-73b778e67f2f399846af57a2c93e22da05bb7657.zip |
Introduce snapshot concept of canvas (#36119)
Each canvas context returns snapshot instead of just raw bytes. This
allows as to hold off conversions (BGRA <-> RGBA, (un)premultiply) to
when/if they are actually needed. For example when loading snapshot into
webgl we can load both RGBA and BGRA so no conversion is really needed.
Currently whole thing is designed to be able to be extend on
https://github.com/servo/ipc-channel/pull/356, to make less copies.
Hence some commented out code.
Fixes #35759
There are tests for these changes in WPT
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Diffstat (limited to 'components/shared/net/Cargo.toml')
0 files changed, 0 insertions, 0 deletions