Index: experimental/PdfViewer/SkPdfGraphicsState.cpp |
diff --git a/experimental/PdfViewer/SkPdfGraphicsState.cpp b/experimental/PdfViewer/SkPdfGraphicsState.cpp |
index b52f22ccc71c340e2e880eec2a6500b4798aedb8..76c4120fa33998f36449235c1228eacf3cbf827a 100644 |
--- a/experimental/PdfViewer/SkPdfGraphicsState.cpp |
+++ b/experimental/PdfViewer/SkPdfGraphicsState.cpp |
@@ -25,9 +25,9 @@ void SkPdfGraphicsState::applyGraphicsState(SkPaint* paint, bool stroking) { |
paint->setStrokeWidth(SkDoubleToScalar(fLineWidth)); |
// TODO(edisonn): perf, avoid allocs of the intervals |
if (fDashArrayLength > 0) { |
- paint->setPathEffect(new SkDashPathEffect(fDashArray, |
- fDashArrayLength, |
- fDashPhase))->unref(); |
+ paint->setPathEffect(SkDashPathEffect::Create(fDashArray, |
+ fDashArrayLength, |
+ fDashPhase))->unref(); |
} |
} |