mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
LibGUI: Mark the first GWindow back bitmap volatile immediately
We were previously waiting until the first bitmap buffer flip happened before marking the back buffer volatile.
This commit is contained in:
parent
571c4d3fb8
commit
f8ec8cc255
Notes:
sideshowbarker
2024-07-19 10:54:12 +09:00
Author: https://github.com/awesomekling
Commit: f8ec8cc255
1 changed files with 1 additions and 0 deletions
|
@ -547,6 +547,7 @@ void GWindow::flip(const Vector<Rect, 32>& dirty_rects)
|
|||
if (!m_back_bitmap || m_back_bitmap->size() != m_front_bitmap->size()) {
|
||||
m_back_bitmap = create_backing_bitmap(m_front_bitmap->size());
|
||||
memcpy(m_back_bitmap->scanline(0), m_front_bitmap->scanline(0), m_front_bitmap->size_in_bytes());
|
||||
m_back_bitmap->shared_buffer()->set_volatile();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue