mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 19:29:52 +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.
7 lines
237 B
Text
7 lines
237 B
Text
#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) =|
|
|
}
|