mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibWeb: Introduce dedicated painting command for borders
Currently, in CPU painter, border painting is implemented by building a Gfx::Path that is filled by Gfx::AntiAliasingPainter. In the GPU painter, we will likely want to do something different, and with a special command, it becomes possible. Also, by making this change, the CPU executor also benefits because now we can skip building paths for borders that are out of the viewport.
This commit is contained in:
parent
70353b79af
commit
29ff1f67be
11 changed files with 50 additions and 12 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
CommandResult draw_triangle_wave(Gfx::IntPoint const& p1, Gfx::IntPoint const& p2, Color const&, int amplitude, int thickness) override;
|
||||
CommandResult sample_under_corners(BorderRadiusCornerClipper&) override;
|
||||
CommandResult blit_corner_clipping(BorderRadiusCornerClipper&) override;
|
||||
CommandResult paint_borders(DevicePixelRect const& border_rect, CornerRadii const& corner_radii, BordersDataDevicePixels const& borders_data) override;
|
||||
|
||||
bool would_be_fully_clipped_by_painter(Gfx::IntRect) const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue