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
commit 1a157d3f50
Notes: sideshowbarker 2024-07-18 23:11:57 +09:00
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;