mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
LibGfx: Use ErrorOr<T> for Gfx::Bitmap::allocate_backing_store()
This commit is contained in:
parent
56992f90b7
commit
af562c857e
2 changed files with 9 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue