ladybird/Userland/Libraries/LibImageDecoderClient
Andreas Kling 166e603c5e ImageDecoder: Pass decoded images as Gfx::Bitmap over IPC
Before this change, we were passing them as Gfx::ShareableBitmap. The
problem is that shareable bitmaps keep their underlying file descriptor
open, so that they can be shared again with someone else.

When a Gfx::Bitmap is decoded from an IPC message, the file descriptor
is closed and recovered immediately.

This fixes an issue where we'd accumulate one file descriptor for every
image decoded. This eventually led to descriptor starvation after enough
images were loaded and still referenced at the same time.
2024-07-18 09:05:10 +02:00
..
Client.cpp ImageDecoder: Pass decoded images as Gfx::Bitmap over IPC 2024-07-18 09:05:10 +02:00
Client.h ImageDecoder: Pass decoded images as Gfx::Bitmap over IPC 2024-07-18 09:05:10 +02:00
CMakeLists.txt Lagom: Port LibImageDecoderClient to Lagom 2023-10-27 07:26:32 +02:00