remember to injectmoveto before arcTo

Bug: skia:9077
Change-Id: Iee1862fb3ebf2c0801794598ccf8a6977fa3ba1b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/285841
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/pathfill.cpp b/gm/pathfill.cpp
index 3611cba..9d908cb 100644
--- a/gm/pathfill.cpp
+++ b/gm/pathfill.cpp
@@ -660,3 +660,21 @@
 
     surf->draw(orig, 0, 0, nullptr);
 }
+
+DEF_SIMPLE_GM(path_arcto_skbug_9077, canvas, 200, 200) {
+    SkPaint p;
+    p.setColor(SK_ColorRED);
+    p.setAntiAlias(true);
+    p.setStyle(SkPaint::kStroke_Style);
+    p.setStrokeWidth(2);
+
+    SkPath path;
+    SkPoint pts[] = { {20, 20}, {100, 20}, {100, 60}, {130, 150}, {180, 160} };
+    SkScalar radius = 60;
+    path.moveTo(pts[0]);
+    path.lineTo(pts[1]);
+    path.lineTo(pts[2]);
+    path.close();
+    path.arcTo(pts[3], pts[4], radius);
+    canvas->drawPath(path, p);
+}