From 937134430a5f0e61e34f69e2dd06a73be5a8f093 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 14 Sep 2011 22:58:08 +0000 Subject: [PATCH] only output the total layer rendering time after processing all styles --- src/feature_style_processor.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/feature_style_processor.cpp b/src/feature_style_processor.cpp index 15451bf6f..4dc11720b 100644 --- a/src/feature_style_processor.cpp +++ b/src/feature_style_processor.cpp @@ -230,7 +230,7 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces // first, try intersection of map extent forward projected into layer srs if (prj_trans.forward(map_ext, PROJ_ENVELOPE_POINTS) && map_ext.intersects(layer_ext)) - { + { layer_ext.clip(map_ext); } // if no intersection and projections are also equal, early return @@ -501,7 +501,6 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces #if defined(RENDERING_STATS) style_timer.stop(); - layer_timer.stop(); // done with style std::ostringstream s; @@ -527,6 +526,11 @@ void feature_style_processor::apply_to_layer(layer const& lay, Proces #endif cache_features = false; } + + #if defined(RENDERING_STATS) + layer_timer.stop(); + #endif + p.end_layer_processing(lay); }