+ correct skia usage
This commit is contained in:
parent
f2dc21bf72
commit
c88db8c08a
1 changed files with 2 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue