mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:17:45 +00:00
LibGfx: Fix fuzzer build (put anon_create() behind __serenity__)
This commit is contained in:
parent
6f666c20f5
commit
6536a9c79a
1 changed files with 2 additions and 0 deletions
|
@ -497,6 +497,7 @@ int Bitmap::shbuf_id() const
|
||||||
return m_shared_buffer ? m_shared_buffer->shbuf_id() : -1;
|
return m_shared_buffer ? m_shared_buffer->shbuf_id() : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __serenity__
|
||||||
ShareableBitmap Bitmap::to_shareable_bitmap() const
|
ShareableBitmap Bitmap::to_shareable_bitmap() const
|
||||||
{
|
{
|
||||||
auto bitmap = to_bitmap_backed_by_anon_fd();
|
auto bitmap = to_bitmap_backed_by_anon_fd();
|
||||||
|
@ -504,6 +505,7 @@ ShareableBitmap Bitmap::to_shareable_bitmap() const
|
||||||
return {};
|
return {};
|
||||||
return ShareableBitmap(*bitmap);
|
return ShareableBitmap(*bitmap);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
Optional<BackingStore> Bitmap::allocate_backing_store(BitmapFormat format, const IntSize& size, [[maybe_unused]] Purgeable purgeable)
|
Optional<BackingStore> Bitmap::allocate_backing_store(BitmapFormat format, const IntSize& size, [[maybe_unused]] Purgeable purgeable)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue