1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

ImageDecoder: Add plumbing to allow a client to request an ideal size

This is only used for vector graphics format where requesting the true
displayed size leads to visual enhancement.
This commit is contained in:
Lucas CHOLLET 2023-12-23 13:56:23 -05:00 committed by Andreas Kling
parent 4c23f0e142
commit e56eb11dee
7 changed files with 13 additions and 13 deletions

View file

@ -32,7 +32,7 @@ class Client final
public:
Client(NonnullOwnPtr<Core::LocalSocket>);
Optional<DecodedImage> decode_image(ReadonlyBytes, Optional<ByteString> mime_type = {});
Optional<DecodedImage> decode_image(ReadonlyBytes, Optional<Gfx::IntSize> ideal_size = {}, Optional<ByteString> mime_type = {});
Function<void()> on_death;