diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-01 18:53:34 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-01 18:53:34 +0100 |
commit | fc864601348ee89e57d024c24d423499b496b5ab (patch) | |
tree | 549df970d6cc70438e8bf06b68c1c3765b27fa98 /Libraries/LibDraw | |
parent | 38f93ef13b6a2c111c4c99de5c21ccc2d7b90fda (diff) | |
download | serenity-fc864601348ee89e57d024c24d423499b496b5ab.zip |
AK: Move the userspace SharedBuffer from LibC to AK
This always felt out-of-place in LibC.
Diffstat (limited to 'Libraries/LibDraw')
-rw-r--r-- | Libraries/LibDraw/GraphicsBitmap.h | 5 | ||||
-rw-r--r-- | Libraries/LibDraw/SystemTheme.h | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Libraries/LibDraw/GraphicsBitmap.h b/Libraries/LibDraw/GraphicsBitmap.h index 42695ed887..db14644950 100644 --- a/Libraries/LibDraw/GraphicsBitmap.h +++ b/Libraries/LibDraw/GraphicsBitmap.h @@ -6,9 +6,9 @@ #include <AK/MappedFile.h> #include <AK/RefCounted.h> #include <AK/RefPtr.h> +#include <AK/SharedBuffer.h> #include <AK/String.h> #include <AK/StringView.h> -#include <SharedBuffer.h> class GraphicsBitmap : public RefCounted<GraphicsBitmap> { public: @@ -105,7 +105,8 @@ public: [[nodiscard]] bool set_nonvolatile(); private: - enum class Purgeable { No, Yes }; + enum class Purgeable { No, + Yes }; GraphicsBitmap(Format, const Size&, Purgeable); GraphicsBitmap(Format, const Size&, size_t pitch, RGBA32*); GraphicsBitmap(Format, const Size&, MappedFile&&); diff --git a/Libraries/LibDraw/SystemTheme.h b/Libraries/LibDraw/SystemTheme.h index b02b9ecc44..b075156a0f 100644 --- a/Libraries/LibDraw/SystemTheme.h +++ b/Libraries/LibDraw/SystemTheme.h @@ -1,8 +1,8 @@ #pragma once +#include <AK/SharedBuffer.h> #include <AK/Types.h> #include <LibDraw/Color.h> -#include <SharedBuffer.h> enum class ColorRole { NoRole, |