summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/PBMLoader.h
diff options
context:
space:
mode:
authorTimothy <timmot@users.noreply.github.com>2021-09-07 21:13:29 +1000
committerAndreas Kling <kling@serenityos.org>2021-09-09 02:34:29 +0200
commitc966c325719673a411b793250b6247862e3b89de (patch)
tree5a10b136a4252c8414db78f5481436870fa4225c /Userland/Libraries/LibGfx/PBMLoader.h
parenteb5320023ad6d4746dd6abfa191ea2e016719077 (diff)
downloadserenity-c966c325719673a411b793250b6247862e3b89de.zip
LibGfx: Move common loader functionality to load from memory functions
This will share functionality between the load from path and load from memory functions.
Diffstat (limited to 'Userland/Libraries/LibGfx/PBMLoader.h')
-rw-r--r--Userland/Libraries/LibGfx/PBMLoader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/PBMLoader.h b/Userland/Libraries/LibGfx/PBMLoader.h
index 06fd5ecb75..1c022f9e45 100644
--- a/Userland/Libraries/LibGfx/PBMLoader.h
+++ b/Userland/Libraries/LibGfx/PBMLoader.h
@@ -6,13 +6,14 @@
#pragma once
+#include <AK/String.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/ImageDecoder.h>
namespace Gfx {
RefPtr<Gfx::Bitmap> load_pbm(const StringView& path);
-RefPtr<Gfx::Bitmap> load_pbm_from_memory(const u8*, size_t);
+RefPtr<Gfx::Bitmap> load_pbm_from_memory(u8 const*, size_t, String const& mmap_name = "<memory>");
struct PBMLoadingContext;