From c88db8c08a90eddad77c1d5de393fe899d1f1efa Mon Sep 17 00:00:00 2001 From: artemp Date: Mon, 29 Jul 2013 12:36:04 +0100 Subject: [PATCH] + correct skia usage --- src/skia/skia_renderer.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/skia/skia_renderer.cpp b/src/skia/skia_renderer.cpp index ff0703ae5..848b82ab2 100644 --- a/src/skia/skia_renderer.cpp +++ b/src/skia/skia_renderer.cpp @@ -284,15 +284,10 @@ void skia_renderer::process(line_symbolizer const& sym, dash.push_back(p.first * scale_factor_); dash.push_back(p.second * scale_factor_); } + paint.setPathEffect(new SkDashPathEffect(&dash[0], dash.size(), strk.dash_offset(), false)); - SkDashPathEffect dash_effect(&dash[0], dash.size(), strk.dash_offset(), false); - paint.setPathEffect(&dash_effect); - canvas_.drawPath(path, paint); - } - else - { - canvas_.drawPath(path, paint); } + canvas_.drawPath(path, paint); } void skia_renderer::process(polygon_symbolizer const& sym,