summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-16 09:02:17 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-16 09:02:17 +0100
commit6536a9c79ab1bbff747e5cfb009b08626b4fabc3 (patch)
tree42eeaee8f82cec46a4a0234fac6ac553c274c8ba /Userland/Libraries/LibGfx
parent6f666c20f5ae95a4aaef4da61eb301887c07eb20 (diff)
downloadserenity-6536a9c79ab1bbff747e5cfb009b08626b4fabc3.zip
LibGfx: Fix fuzzer build (put anon_create() behind __serenity__)
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/Bitmap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.cpp b/Userland/Libraries/LibGfx/Bitmap.cpp
index c6811df2e9..d04f9801bb 100644
--- a/Userland/Libraries/LibGfx/Bitmap.cpp
+++ b/Userland/Libraries/LibGfx/Bitmap.cpp
@@ -497,6 +497,7 @@ int Bitmap::shbuf_id() const
return m_shared_buffer ? m_shared_buffer->shbuf_id() : -1;
}
+#ifdef __serenity__
ShareableBitmap Bitmap::to_shareable_bitmap() const
{
auto bitmap = to_bitmap_backed_by_anon_fd();
@@ -504,6 +505,7 @@ ShareableBitmap Bitmap::to_shareable_bitmap() const
return {};
return ShareableBitmap(*bitmap);
}
+#endif
Optional<BackingStore> Bitmap::allocate_backing_store(BitmapFormat format, const IntSize& size, [[maybe_unused]] Purgeable purgeable)
{