mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibGfx: Use Skia for TinyVG rendering
This commit is contained in:
parent
331f26a88b
commit
39c500ec7c
Notes:
github-actions[bot]
2024-11-25 11:15:23 +00:00
Author: https://github.com/shlyakpavel
Commit: 39c500ec7c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2512
Reviewed-by: https://github.com/gmta ✅
5 changed files with 51 additions and 31 deletions
|
@ -10,10 +10,11 @@
|
|||
#include <AK/OwnPtr.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/DeprecatedPath.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/ImageFormats/ImageDecoder.h>
|
||||
#include <LibGfx/PaintStyle.h>
|
||||
#include <LibGfx/Painter.h>
|
||||
#include <LibGfx/Path.h>
|
||||
#include <LibGfx/VectorGraphic.h>
|
||||
|
||||
namespace Gfx {
|
||||
|
@ -41,7 +42,7 @@ public:
|
|||
using Style = Variant<Color, NonnullRefPtr<SVGGradientPaintStyle>>;
|
||||
|
||||
struct DrawCommand {
|
||||
DeprecatedPath path;
|
||||
Path path;
|
||||
Optional<Style> fill {};
|
||||
Optional<Style> stroke {};
|
||||
float stroke_width { 0.0f };
|
||||
|
@ -52,7 +53,7 @@ public:
|
|||
return m_size;
|
||||
}
|
||||
|
||||
virtual void draw_transformed(DeprecatedPainter&, AffineTransform) const override;
|
||||
virtual void draw_transformed(Painter&, AffineTransform) const override;
|
||||
|
||||
ReadonlySpan<DrawCommand> draw_commands() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue