1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:17:36 +00:00

LibGfx: Fix fuzzer build (put anon_create() behind __serenity__)

This commit is contained in:
Andreas Kling 2021-01-16 09:02:17 +01:00
parent 6f666c20f5
commit 6536a9c79a

View file

@ -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)
{