mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +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:
parent
04b2aeef33
commit
b5d98c0945
7 changed files with 52 additions and 32 deletions
|
@ -60,6 +60,8 @@ private:
|
|||
virtual void handle(const Messages::WebContentServer::MouseMove&) override;
|
||||
virtual void handle(const Messages::WebContentServer::MouseUp&) override;
|
||||
virtual void handle(const Messages::WebContentServer::KeyDown&) override;
|
||||
virtual void handle(const Messages::WebContentServer::AddBackingStore&) override;
|
||||
virtual void handle(const Messages::WebContentServer::RemoveBackingStore&) override;
|
||||
|
||||
void flush_pending_paint_requests();
|
||||
|
||||
|
@ -68,9 +70,12 @@ private:
|
|||
struct PaintRequest {
|
||||
Gfx::IntRect content_rect;
|
||||
NonnullRefPtr<Gfx::Bitmap> bitmap;
|
||||
i32 bitmap_id { -1 };
|
||||
};
|
||||
Vector<PaintRequest> m_pending_paint_requests;
|
||||
RefPtr<Core::Timer> m_paint_flush_timer;
|
||||
|
||||
HashMap<i32, NonnullRefPtr<Gfx::Bitmap>> m_backing_stores;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue