mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +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
293 B
Plaintext
8 lines
293 B
Plaintext
#include <LibGfx/ShareableBitmap.h>
|
|
|
|
endpoint ImageDecoderClient
|
|
{
|
|
did_decode_image(i64 image_id, bool is_animated, u32 loop_count, Vector<Gfx::ShareableBitmap> bitmaps, Vector<u32> durations, Gfx::FloatPoint scale) =|
|
|
did_fail_to_decode_image(i64 image_id, String error_message) =|
|
|
}
|