1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

LibPDF: Use proper ICC profiles for ICCBasedColorSpace

This commit is contained in:
Matthew Olsson 2023-07-18 18:35:49 -07:00 committed by Sam Atkins
parent fa1b1f8244
commit e989008471
2 changed files with 58 additions and 24 deletions

View file

@ -9,6 +9,7 @@
#include <AK/DeprecatedFlyString.h>
#include <AK/Forward.h>
#include <LibGfx/Color.h>
#include <LibGfx/ICC/Profile.h>
#include <LibPDF/Value.h>
#define ENUMERATE_COLOR_SPACE_FAMILIES(V) \
@ -137,7 +138,10 @@ public:
ColorSpaceFamily const& family() const override { return ColorSpaceFamily::ICCBased; }
private:
ICCBasedColorSpace() = delete;
ICCBasedColorSpace(NonnullRefPtr<Gfx::ICC::Profile>);
static RefPtr<Gfx::ICC::Profile> s_srgb_profile;
NonnullRefPtr<Gfx::ICC::Profile> m_profile;
};
}