mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement HTMLImageElement decode
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
This commit is contained in:
parent
98057799ac
commit
ba359083e5
4 changed files with 33 additions and 0 deletions
|
@ -41,6 +41,7 @@ use crate::resource_thread::CoreResourceThreadPool;
|
|||
// ======================================================================
|
||||
|
||||
fn decode_bytes_sync(key: LoadKey, bytes: &[u8], cors: CorsStatus) -> DecoderMsg {
|
||||
// decode
|
||||
let image = load_from_memory(bytes, cors);
|
||||
DecoderMsg { key, image }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue