mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
a3cc03f180
This thing is essentially a wrapper around an SkPath, although we do some indirection via a PathImpl class to keep the door open for alternative rasterizer/path backends in the future. We also update the 2D canvas code, since that was the only code that used Painter+DeprecatedPath, and this allows us to just drop that code instead of temporarily supporting it until the next commit.
19 lines
308 B
C++
19 lines
308 B
C++
/*
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <LibGfx/Path.h>
|
|
#include <LibGfx/PathSkia.h>
|
|
|
|
namespace Gfx {
|
|
|
|
NonnullOwnPtr<Gfx::PathImpl> PathImpl::create()
|
|
{
|
|
return PathImplSkia::create();
|
|
}
|
|
|
|
PathImpl::~PathImpl() = default;
|
|
|
|
}
|