mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Allow working on N+1 frame while N is rasterizing
This change allows us to overlap rasterization and rendering work across threads: while the rasterization thread processes frame N, the main thread can simultaneously work on producing the display list for frame N+1.
This commit is contained in:
parent
7248748157
commit
cb722ca18b
Notes:
github-actions[bot]
2025-04-01 10:18:57 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: cb722ca18b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4163
Reviewed-by: https://github.com/gmta ✅
3 changed files with 27 additions and 20 deletions
|
@ -190,12 +190,7 @@ private:
|
|||
bool m_should_show_line_box_borders { false };
|
||||
bool m_has_focus { false };
|
||||
|
||||
enum class PaintState {
|
||||
Ready,
|
||||
WaitingForClient,
|
||||
};
|
||||
|
||||
PaintState m_paint_state { PaintState::Ready };
|
||||
i32 m_number_of_queued_rasterization_tasks { 0 };
|
||||
|
||||
struct ScreenshotTask {
|
||||
Optional<Web::UniqueNodeID> node_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue