Index: gm/strokes.cpp |
diff --git a/gm/strokes.cpp b/gm/strokes.cpp |
index bd393829e0a332866deb36f67022eb65b1aaa486..2d76879d9cbf9d723bf4abad4bba9ac6b1977499 100644 |
--- a/gm/strokes.cpp |
+++ b/gm/strokes.cpp |
@@ -193,6 +193,22 @@ private: |
typedef skiagm::GM INHERITED; |
}; |
+DEF_SIMPLE_GM(CubicStroke, canvas, 384, 384) { |
+ SkPaint p; |
+ p.setAntiAlias(true); |
+ p.setStyle(SkPaint::kStroke_Style); |
+ p.setStrokeWidth(1.0720f); |
+ SkPath path; |
+ path.moveTo(-6000,-6000); |
+ path.cubicTo(-3500,5500,-500,5500,2500,-6500); |
+ canvas->drawPath(path, p); |
+ p.setStrokeWidth(1.0721f); |
+ canvas->translate(10, 10); |
+ canvas->drawPath(path, p); |
+ p.setStrokeWidth(1.0722f); |
+ canvas->translate(10, 10); |
+ canvas->drawPath(path, p); |
+} |
class Strokes2GM : public skiagm::GM { |
SkPath fPath; |