Skip to content

Commit

Permalink
[Skia] Implement Path.arcTo()
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=270043

Reviewed by Carlos Garcia Campos.

* Source/WebCore/platform/graphics/skia/PathSkia.cpp:
(WebCore::PathSkia::add):

Canonical link: https://commits.webkit.org/275293@main
  • Loading branch information
TingPing committed Feb 25, 2024
1 parent 55b0807 commit 84d3b09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/WebCore/platform/graphics/skia/PathSkia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ void PathSkia::add(PathBezierCurveTo cubicTo)
SkFloatToScalar(cubicTo.endPoint.x()), SkFloatToScalar(cubicTo.endPoint.y()));
}

void PathSkia::add(PathArcTo)
void PathSkia::add(PathArcTo arcTo)
{
notImplemented();
m_platformPath.arcTo(SkFloatToScalar(arcTo.controlPoint1.x()), SkFloatToScalar(arcTo.controlPoint1.y()), SkFloatToScalar(arcTo.controlPoint2.x()), SkFloatToScalar(arcTo.controlPoint2.y()),
SkFloatToScalar(arcTo.radius));
}

void PathSkia::addEllipse(const FloatPoint& center, float radiusX, float radiusY, float startAngle, float endAngle, RotationDirection direction)
Expand Down

0 comments on commit 84d3b09

Please sign in to comment.