mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-06-18 15:52:21 +00:00
When nothing invalidates the display list between frames, push only an updated scroll state snapshot to the rendering thread instead of handing it the display list again. This is preparation for moving rendering to a separate process, where sending the display list across the process boundary on every frame would be expensive.
22 lines
435 B
C++
22 lines
435 B
C++
/*
|
|
* Copyright (c) 2025, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Optional.h>
|
|
#include <LibGfx/Rect.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
struct PaintConfig {
|
|
bool paint_overlay { false };
|
|
bool should_show_line_box_borders { false };
|
|
Optional<Gfx::IntRect> canvas_fill_rect {};
|
|
|
|
bool operator==(PaintConfig const& other) const = default;
|
|
};
|
|
|
|
}
|