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/bug615686.cpp b/gm/bug615686.cpp
index bf930aa..b76cb07 100644
--- a/gm/bug615686.cpp
+++ b/gm/bug615686.cpp
@@ -8,15 +8,14 @@
#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(bug615686, canvas, 250, 250) {
SkPaint p;
p.setAntiAlias(true);
p.setStyle(SkPaint::kStroke_Style);
p.setStrokeWidth(20);
- SkPath path;
- path.moveTo(0, 0);
- path.cubicTo(200, 200, 0, 200, 200, 0);
- canvas->drawPath(path, p);
+ canvas->drawPath(SkPathBuilder().moveTo(0, 0)
+ .cubicTo(200, 200, 0, 200, 200, 0)
+ .detach(), p);
}