Index: gm/strokes.cpp |
diff --git a/gm/strokes.cpp b/gm/strokes.cpp |
index a12a40910ff122ccb46f163c76234f2c323a3bef..57517a0616d1965cf33ea35585670f8fd2cedccc 100644 |
--- a/gm/strokes.cpp |
+++ b/gm/strokes.cpp |
@@ -84,16 +84,12 @@ |
*/ |
class ZeroLenStrokesGM : public skiagm::GM { |
SkPath fMoveHfPath, fMoveZfPath, fDashedfPath, fRefPath[4]; |
- SkPath fCubicPath, fQuadPath, fLinePath; |
protected: |
void onOnceBeforeDraw() override { |
SkAssertResult(SkParsePath::FromSVGString("M0,0h0M10,0h0M20,0h0", &fMoveHfPath)); |
SkAssertResult(SkParsePath::FromSVGString("M0,0zM10,0zM20,0z", &fMoveZfPath)); |
SkAssertResult(SkParsePath::FromSVGString("M0,0h25", &fDashedfPath)); |
- SkAssertResult(SkParsePath::FromSVGString("M 0 0 C 0 0 0 0 0 0", &fCubicPath)); |
- SkAssertResult(SkParsePath::FromSVGString("M 0 0 Q 0 0 0 0", &fQuadPath)); |
- SkAssertResult(SkParsePath::FromSVGString("M 0 0 L 0 0", &fLinePath)); |
for (int i = 0; i < 3; ++i) { |
fRefPath[0].addCircle(i * 10.f, 0, 5); |
@@ -144,12 +140,6 @@ |
canvas->translate(0, 30); |
fillPaint.setAlpha(127); |
canvas->drawPath(fRefPath[1 + i * 2], fillPaint); |
- canvas->translate(0, 30); |
- canvas->drawPath(fCubicPath, strokePaint); |
- canvas->translate(0, 30); |
- canvas->drawPath(fQuadPath, strokePaint); |
- canvas->translate(0, 30); |
- canvas->drawPath(fLinePath, strokePaint); |
canvas->restore(); |
} |
} |