mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:37:44 +00:00
Kernel: Add a simple shared memory API for two processes only.
And use this to implement shared bitmaps between WindowServer and clients.
This commit is contained in:
parent
4db78dabd3
commit
4ea28bf0a5
13 changed files with 240 additions and 48 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
WSMenuBar* app_menubar() { return m_app_menubar.ptr(); }
|
||||
|
||||
int fd() const { return m_fd; }
|
||||
pid_t pid() const { return m_pid; }
|
||||
|
||||
private:
|
||||
virtual void on_message(WSMessage&) override;
|
||||
|
@ -61,6 +62,7 @@ private:
|
|||
|
||||
int m_client_id { 0 };
|
||||
int m_fd { -1 };
|
||||
pid_t m_pid { 0 };
|
||||
|
||||
HashMap<int, OwnPtr<WSWindow>> m_windows;
|
||||
HashMap<int, OwnPtr<WSMenuBar>> m_menubars;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue