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:
Aliaksandr Kalenik 2025-04-01 00:06:01 +02:00 committed by Jelle Raaijmakers
commit cb722ca18b
Notes: github-actions[bot] 2025-04-01 10:18:57 +00:00
3 changed files with 27 additions and 20 deletions

View file

@ -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;