1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 11:18:13 +00:00

AK: Move the userspace SharedBuffer from LibC to AK

This always felt out-of-place in LibC.
This commit is contained in:
Andreas Kling 2020-01-01 18:53:34 +01:00
parent 38f93ef13b
commit fc86460134
22 changed files with 41 additions and 24 deletions

View file

@ -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&&);

View file

@ -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,