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:
parent
38f93ef13b
commit
fc86460134
22 changed files with 41 additions and 24 deletions
|
@ -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&&);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue