mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-24 01:14:31 +00:00
This drastically reduces the cost (in time AND space) of allocating a Gfx::Bitmap. Anything that needs to be shared is already using Core::AnonymousBuffer anyway, so this shouldn't break anything important. Do note that this makes it an error to create an empty (0x0) Bitmap, which was previously allowed for some reason. Some small tweaks are included to bail gracefully in such scenarios.
25 KiB
25 KiB