mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
LibGfx: Fix fuzzer build (put anon_create() behind __serenity__)
This commit is contained in:
parent
6f666c20f5
commit
6536a9c79a
Notes:
sideshowbarker
2024-07-18 23:47:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6536a9c79ab
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;
|
||||
}
|
||||
|
||||
#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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue