Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
4 changes: 4 additions & 0 deletions display_list/geometry/dl_path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "flutter/display_list/geometry/dl_geometry_types.h"
#include "flutter/impeller/geometry/path_builder.h"
#include "impeller/geometry/path.h"

namespace flutter {

Expand Down Expand Up @@ -81,6 +82,9 @@ using FillType = impeller::FillType;
using Convexity = impeller::Convexity;

Path DlPath::ConvertToImpellerPath(const SkPath& path, const DlPoint& shift) {
if (path.isEmpty()) {
return impeller::Path{};
}
auto iterator = SkPath::Iter(path, false);

struct PathData {
Expand Down
Loading