1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 07:38:10 +00:00

LibGfx: Don't expose anon_fd inside Gfx::ShareableBitmap

Nobody outside needs to see this, so let's just hide it.
This commit is contained in:
Andreas Kling 2021-01-16 11:05:19 +01:00
parent 4277be356a
commit 1a157d3f50
2 changed files with 1 additions and 3 deletions

View file

@ -47,7 +47,7 @@ bool encode(Encoder& encoder, const Gfx::ShareableBitmap& shareable_bitmap)
encoder << shareable_bitmap.is_valid();
if (!shareable_bitmap.is_valid())
return true;
encoder << IPC::File(shareable_bitmap.anon_fd());
encoder << IPC::File(shareable_bitmap.bitmap()->anon_fd());
encoder << shareable_bitmap.width();
encoder << shareable_bitmap.height();
return true;