2024-08-08 10:12:29 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibGfx/Path.h>
|
|
|
|
|
#include <LibGfx/PathSkia.h>
|
|
|
|
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
2026-05-08 10:58:51 -03:00
|
|
|
Path Path::from_serialized_bytes(ReadonlyBytes bytes)
|
|
|
|
|
{
|
|
|
|
|
Gfx::Path path;
|
|
|
|
|
path.impl().deserialize_from_bytes(bytes);
|
|
|
|
|
return path;
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-08 10:12:29 -03:00
|
|
|
NonnullOwnPtr<Gfx::PathImpl> PathImpl::create()
|
|
|
|
|
{
|
|
|
|
|
return PathImplSkia::create();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PathImpl::~PathImpl() = default;
|
|
|
|
|
|
|
|
|
|
}
|