summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-16 11:05:19 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-16 11:26:53 +0100
commit1a157d3f50f9144e5e730f6dd4f97288a7c8f781 (patch)
treeda59ce9703e88608397541224952f755f4457a0a /Userland
parent4277be356ad8737f162265ffbe7f59374318ba7f (diff)
downloadserenity-1a157d3f50f9144e5e730f6dd4f97288a7c8f781.zip
LibGfx: Don't expose anon_fd inside Gfx::ShareableBitmap
Nobody outside needs to see this, so let's just hide it.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/ShareableBitmap.cpp2
-rw-r--r--Userland/Libraries/LibGfx/ShareableBitmap.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/ShareableBitmap.cpp b/Userland/Libraries/LibGfx/ShareableBitmap.cpp
index c3468445fc..2ab5ece797 100644
--- a/Userland/Libraries/LibGfx/ShareableBitmap.cpp
+++ b/Userland/Libraries/LibGfx/ShareableBitmap.cpp
@@ -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;
diff --git a/Userland/Libraries/LibGfx/ShareableBitmap.h b/Userland/Libraries/LibGfx/ShareableBitmap.h
index b66091c450..06ef331c54 100644
--- a/Userland/Libraries/LibGfx/ShareableBitmap.h
+++ b/Userland/Libraries/LibGfx/ShareableBitmap.h
@@ -39,8 +39,6 @@ public:
bool is_valid() const { return m_bitmap; }
- int anon_fd() const { return m_bitmap ? m_bitmap->anon_fd() : -1; }
-
const Bitmap* bitmap() const { return m_bitmap; }
Bitmap* bitmap() { return m_bitmap; }