summaryrefslogtreecommitdiff
path: root/WindowServer/WSClientConnection.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-14 10:29:17 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-14 10:29:17 +0100
commit5d30c6b00cf29fe9ac1f42fef8f2205a227973c3 (patch)
tree8ebcd8ecca126e28f2c1d0cf951d457cb34e1892 /WindowServer/WSClientConnection.cpp
parent9ab9734da06fc93ddb125ac8906107512242032f (diff)
downloadserenity-5d30c6b00cf29fe9ac1f42fef8f2205a227973c3.zip
WindowServer: Add WSClientConnection::create_bitmap().
There we go. Now WSWindow doesn't know about Process at all.
Diffstat (limited to 'WindowServer/WSClientConnection.cpp')
-rw-r--r--WindowServer/WSClientConnection.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/WindowServer/WSClientConnection.cpp b/WindowServer/WSClientConnection.cpp
index 847e565f27..a2412fd384 100644
--- a/WindowServer/WSClientConnection.cpp
+++ b/WindowServer/WSClientConnection.cpp
@@ -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()) {