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/compositing | |
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/compositing')
-rw-r--r-- | components/shared/compositing/Cargo.toml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/shared/compositing/Cargo.toml b/components/shared/compositing/Cargo.toml index e3ff81615e6..2e39ef5397b 100644 --- a/components/shared/compositing/Cargo.toml +++ b/components/shared/compositing/Cargo.toml @@ -38,4 +38,3 @@ stylo = { workspace = true } stylo_traits = { workspace = true } surfman = { workspace = true, features = ["sm-x11"] } webrender_api = { workspace = true } - |