1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb+WebContent: Use anonymous files for OOPWV backing stores

To support this, the GUI process and the WebContent service will now
coordinate their backing store bitmaps. Each backing store can be
referred to by a serial ID, and we don't need to keep resending it
as a file descriptor.

We should probably do something similar in WindowServer. :^)
This commit is contained in:
Andreas Kling 2021-01-16 23:15:32 +01:00
parent 04b2aeef33
commit b5d98c0945
7 changed files with 52 additions and 32 deletions

View file

@ -45,10 +45,7 @@ void WebContentClient::handshake()
void WebContentClient::handle(const Messages::WebContentClient::DidPaint& message)
{
#ifdef DEBUG_SPAM
dbg() << "handle: WebContentClient::DidPaint! content_rect=" << message.content_rect() << ", shbuf_id=" << message.shbuf_id();
#endif
m_view.notify_server_did_paint({}, message.shbuf_id());
m_view.notify_server_did_paint({}, message.bitmap_id());
}
void WebContentClient::handle([[maybe_unused]] const Messages::WebContentClient::DidFinishLoading& message)