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

WindowServer+LibGUI: Pass the system theme using Core::AnonymousBuffer

This was the last remaining user of shbufs in WindowServer, and so
WindowServer no longer pledges "shared_buffer" :^)
This commit is contained in:
Andreas Kling 2021-01-16 17:20:53 +01:00
parent 9c6c18d9b6
commit 04f95f9160
13 changed files with 51 additions and 56 deletions

View file

@ -41,7 +41,7 @@ class PaletteImpl : public RefCounted<PaletteImpl> {
public:
~PaletteImpl();
static NonnullRefPtr<PaletteImpl> create_with_shared_buffer(SharedBuffer&);
static NonnullRefPtr<PaletteImpl> create_with_anonymous_buffer(Core::AnonymousBuffer);
NonnullRefPtr<PaletteImpl> clone() const;
Color color(ColorRole) const;
@ -49,12 +49,12 @@ public:
String path(PathRole) const;
const SystemTheme& theme() const;
void replace_internal_buffer(Badge<GUI::Application>, SharedBuffer& buffer);
void replace_internal_buffer(Badge<GUI::Application>, Core::AnonymousBuffer buffer);
private:
explicit PaletteImpl(SharedBuffer&);
explicit PaletteImpl(Core::AnonymousBuffer);
RefPtr<SharedBuffer> m_theme_buffer;
Core::AnonymousBuffer m_theme_buffer;
};
class Palette {