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/tests/GrCCPRTest.cpp b/tests/GrCCPRTest.cpp
index a4a8d36..974931d 100644
--- a/tests/GrCCPRTest.cpp
+++ b/tests/GrCCPRTest.cpp
@@ -266,10 +266,11 @@
 
         // Make a path large enough that ccpr chooses to crop it by the RT bounds, and ends up with
         // an empty path.
-        SkPath largeOutsidePath;
-        largeOutsidePath.moveTo(-1e30f, -1e30f);
-        largeOutsidePath.lineTo(-1e30f, +1e30f);
-        largeOutsidePath.lineTo(-1e10f, +1e30f);
+        SkPath largeOutsidePath = SkPath::Polygon({
+            {-1e30f, -1e30f},
+            {-1e30f, +1e30f},
+            {-1e10f, +1e30f},
+        }, false);
         ccpr.drawPath(largeOutsidePath);
 
         // Normally an empty path is culled before reaching ccpr, however we use a back door for