From c966c325719673a411b793250b6247862e3b89de Mon Sep 17 00:00:00 2001 From: Timothy Date: Tue, 7 Sep 2021 21:13:29 +1000 Subject: LibGfx: Move common loader functionality to load from memory functions This will share functionality between the load from path and load from memory functions. --- Userland/Libraries/LibGfx/PBMLoader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGfx/PBMLoader.h') 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 #include #include namespace Gfx { RefPtr load_pbm(const StringView& path); -RefPtr load_pbm_from_memory(const u8*, size_t); +RefPtr load_pbm_from_memory(u8 const*, size_t, String const& mmap_name = ""); struct PBMLoadingContext; -- cgit v1.2.3