mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Ladybird+LibWebView: Remember the size of the last paint
This will allow us to change the size of the backing store bitmap without conflating the size of the bitmap and the size of the paint.
This commit is contained in:
parent
68271c4fce
commit
def37e65f3
7 changed files with 11 additions and 8 deletions
|
@ -71,7 +71,7 @@ public:
|
|||
void run_javascript(StringView);
|
||||
|
||||
virtual void notify_server_did_layout(Badge<WebContentClient>, Gfx::IntSize content_size) = 0;
|
||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id) = 0;
|
||||
virtual void notify_server_did_paint(Badge<WebContentClient>, i32 bitmap_id, Gfx::IntSize) = 0;
|
||||
virtual void notify_server_did_invalidate_content_rect(Badge<WebContentClient>, Gfx::IntRect const&) = 0;
|
||||
virtual void notify_server_did_change_selection(Badge<WebContentClient>) = 0;
|
||||
virtual void notify_server_did_request_cursor_change(Badge<WebContentClient>, Gfx::StandardCursor cursor) = 0;
|
||||
|
@ -142,6 +142,7 @@ protected:
|
|||
struct SharedBitmap {
|
||||
i32 id { -1 };
|
||||
i32 pending_paints { 0 };
|
||||
Gfx::IntSize last_painted_size;
|
||||
RefPtr<Gfx::Bitmap> bitmap;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue