Index: src/gpu/batches/GrDashLinePathRenderer.cpp |
diff --git a/src/gpu/batches/GrDashLinePathRenderer.cpp b/src/gpu/batches/GrDashLinePathRenderer.cpp |
index e7ef2402a9cc7f182d8e528022dacc8ea49290ac..8dba7b94da757b35df3981fcfa43645a6837a8ed 100644 |
--- a/src/gpu/batches/GrDashLinePathRenderer.cpp |
+++ b/src/gpu/batches/GrDashLinePathRenderer.cpp |
@@ -13,10 +13,7 @@ |
bool GrDashLinePathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { |
SkPoint pts[2]; |
- bool inverted; |
- if (args.fShape->style().isDashed() && args.fShape->asLine(pts, &inverted)) { |
- // We should never have an inverse dashed case. |
- SkASSERT(!inverted); |
+ if (args.fShape->style().isDashed() && args.fShape->asLine(pts)) { |
return GrDashingEffect::CanDrawDashLine(pts, args.fShape->style(), *args.fViewMatrix); |
} |
return false; |
@@ -37,7 +34,7 @@ |
aaMode = GrDashingEffect::AAMode::kNone; |
} |
SkPoint pts[2]; |
- SkAssertResult(args.fShape->asLine(pts, nullptr)); |
+ SkAssertResult(args.fShape->asLine(pts)); |
SkAutoTUnref<GrDrawBatch> batch(GrDashingEffect::CreateDashLineBatch(args.fColor, |
*args.fViewMatrix, |
pts, |