summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/Bitmap.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-06 10:15:13 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-08 00:35:27 +0100
commitaf562c857e0506d656238360dcf21f7fa042a233 (patch)
tree97210e79f380c0397aaf5191546ac614b7de8cb1 /Userland/Libraries/LibGfx/Bitmap.h
parent56992f90b7908d6665a9581e28452462ba563d2f (diff)
downloadserenity-af562c857e0506d656238360dcf21f7fa042a233.zip
LibGfx: Use ErrorOr<T> for Gfx::Bitmap::allocate_backing_store()
Diffstat (limited to 'Userland/Libraries/LibGfx/Bitmap.h')
-rw-r--r--Userland/Libraries/LibGfx/Bitmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.h b/Userland/Libraries/LibGfx/Bitmap.h
index 9cffbb5dbc..3463cde71d 100644
--- a/Userland/Libraries/LibGfx/Bitmap.h
+++ b/Userland/Libraries/LibGfx/Bitmap.h
@@ -241,7 +241,7 @@ private:
Bitmap(BitmapFormat, const IntSize&, int, size_t pitch, void*);
Bitmap(BitmapFormat, Core::AnonymousBuffer, const IntSize&, int, const Vector<RGBA32>& palette);
- static Optional<BackingStore> try_allocate_backing_store(BitmapFormat format, IntSize const& size, int scale_factor);
+ static ErrorOr<BackingStore> allocate_backing_store(BitmapFormat format, IntSize const& size, int scale_factor);
void allocate_palette_from_format(BitmapFormat, const Vector<RGBA32>& source_palette);