1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +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

@ -65,6 +65,13 @@ void WSClientConnection::post_message(GUI_ServerMessage&& message)
m_process->gui_events().append(move(message));
}
RetainPtr<GraphicsBitmap> WSClientConnection::create_bitmap(const Size& size)
{
if (!m_process)
return nullptr;
return GraphicsBitmap::create(*m_process, size);
}
void WSClientConnection::on_message(WSMessage& message)
{
if (message.is_client_request()) {