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

LibWeb: Make OOPWV resizing flicker-free :^)

When resizing, keep a copy of the last good bitmap we have, and keep
using that until we receive a new one from the WebContent process.
This commit is contained in:
Andreas Kling 2021-02-09 22:07:36 +01:00
parent 8c220dee03
commit c9aa7539a6
2 changed files with 18 additions and 7 deletions

View file

@ -99,6 +99,8 @@ private:
i32 next_bitmap_id { 0 };
bool has_usable_bitmap { false };
} m_client_state;
RefPtr<Gfx::Bitmap> m_backup_bitmap;
};
}