LibGfx: Use Skia for TinyVG rendering

This commit is contained in:
Pavel Shliak 2024-11-23 03:08:07 +04:00 committed by Jelle Raaijmakers
commit 39c500ec7c
Notes: github-actions[bot] 2024-11-25 11:15:23 +00:00
5 changed files with 51 additions and 31 deletions

View file

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