1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

WindowServer: Add WSClientConnection::create_bitmap().

There we go. Now WSWindow doesn't know about Process at all.
This commit is contained in:
Andreas Kling 2019-02-14 10:29:17 +01:00
parent 9ab9734da0
commit 5d30c6b00c
3 changed files with 13 additions and 12 deletions

View file

@ -3,6 +3,7 @@
#include <AK/HashMap.h>
#include <AK/OwnPtr.h>
#include <AK/WeakPtr.h>
#include <SharedGraphics/GraphicsBitmap.h>
#include <WindowServer/WSMessageReceiver.h>
#include <WindowServer/WSMessage.h>
@ -23,9 +24,7 @@ public:
static WSClientConnection* ensure_for_client_id(int client_id);
void post_message(GUI_ServerMessage&&);
// FIXME: Remove.
Process* process() { return m_process.ptr(); }
RetainPtr<GraphicsBitmap> create_bitmap(const Size&);
int client_id() const { return m_client_id; }
WSMenuBar* app_menubar() { return m_app_menubar.ptr(); }