+ correct skia usage

This commit is contained in:
artemp 2013-07-29 12:36:04 +01:00
parent f2dc21bf72
commit c88db8c08a

View file

@ -284,16 +284,11 @@ 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);
}
}
void skia_renderer::process(polygon_symbolizer const& sym,
mapnik::feature_impl & feature,