mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
ImageDecoder now queues up image decoding requests and returns the images back to the caller later. ImageDecoderClient has a new promise-based API that allows callers to attach their own resolve/reject handlers to the responses from ImageDecoder.
8 lines
237 B
Plaintext
8 lines
237 B
Plaintext
#include <LibCore/AnonymousBuffer.h>
|
|
|
|
endpoint ImageDecoderServer
|
|
{
|
|
decode_image(Core::AnonymousBuffer data, Optional<Gfx::IntSize> ideal_size, Optional<ByteString> mime_type) => (i64 image_id)
|
|
cancel_decoding(i64 image_id) =|
|
|
}
|