use pathbuilder

Change-Id: I4b40107b45cd829595e89d75e19fd063acee4221
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/311106
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/crbug_788500.cpp b/gm/crbug_788500.cpp
index a0a1ad3..3938b3e 100644
--- a/gm/crbug_788500.cpp
+++ b/gm/crbug_788500.cpp
@@ -8,10 +8,10 @@
 #include "gm/gm.h"
 #include "include/core/SkCanvas.h"
 #include "include/core/SkPaint.h"
-#include "include/core/SkPath.h"
+#include "include/core/SkPathBuilder.h"
 
 DEF_SIMPLE_GM(crbug_788500, canvas, 300, 300) {
-    SkPath path;
+    SkPathBuilder path;
     path.setFillType(SkPathFillType::kEvenOdd);
     path.moveTo(0, 0);
     path.moveTo(245.5f, 98.5f);
@@ -19,5 +19,5 @@
 
     SkPaint paint;
     paint.setAntiAlias(true);
-    canvas->drawPath(path, paint);
+    canvas->drawPath(path.detach(), paint);
 }