use pathbuilder

Change-Id: I2bca419a3273a9cc8a984b0f4159f518968c6652
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/313077
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/gm/pathmeasure.cpp b/gm/pathmeasure.cpp
index cd79cfb..25b3611 100644
--- a/gm/pathmeasure.cpp
+++ b/gm/pathmeasure.cpp
@@ -7,7 +7,7 @@
 
 #include "include/core/SkCanvas.h"
 #include "include/core/SkPaint.h"
-#include "include/core/SkPath.h"
+#include "include/core/SkPathBuilder.h"
 #include "include/core/SkPathEffect.h"
 #include "include/core/SkTypes.h"
 #include "include/effects/SkDashPathEffect.h"
@@ -29,7 +29,7 @@
     };
     int next_quadratic_at = 0;
 
-    SkPath path;
+    SkPathBuilder path;
     path.moveTo(0, 0);
 
     int i = 1;
@@ -51,7 +51,7 @@
             i = 1;
         }
     }
-    canvas->drawPath(path, p);
+    canvas->drawPath(path.detach(), p);
 }
 
 #if 0