From 17db460345aeab21000cf7c18c9dea8d1543d835 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 8 Jun 2017 14:30:47 -0700 Subject: [core] Parallelism in {start,finish}Render parameters --- src/mbgl/renderer/sources/render_geojson_source.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mbgl/renderer/sources/render_geojson_source.cpp') diff --git a/src/mbgl/renderer/sources/render_geojson_source.cpp b/src/mbgl/renderer/sources/render_geojson_source.cpp index 96500d8fae..337b7b8b7a 100644 --- a/src/mbgl/renderer/sources/render_geojson_source.cpp +++ b/src/mbgl/renderer/sources/render_geojson_source.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -58,9 +59,9 @@ void RenderGeoJSONSource::update(Immutable baseImpl_, }); } -void RenderGeoJSONSource::startRender(algorithm::ClipIDGenerator& generator, const mat4& projMatrix, const mat4& clipMatrix, const TransformState& transform) { - generator.update(tilePyramid.getRenderTiles()); - tilePyramid.startRender(projMatrix, clipMatrix, transform); +void RenderGeoJSONSource::startRender(Painter& painter) { + painter.clipIDGenerator.update(tilePyramid.getRenderTiles()); + tilePyramid.startRender(painter); } void RenderGeoJSONSource::finishRender(Painter& painter) { -- cgit v1.2.1