[core] Removed time param from Painter::render

Animation time can be obtained directly from MapData.
This commit is contained in:
Bruno de Oliveira Abinader
2015-10-20 12:16:15 -07:00
parent 0045eef00a
commit 6824a24acd
3 changed files with 4 additions and 5 deletions

View File

@@ -244,7 +244,7 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
glObjectStore.performCleanup();
if (!painter) painter = std::make_unique<Painter>(data);
painter->render(*style, transformState, frame, data.getAnimationTime());
painter->render(*style, transformState, frame);
if (data.mode == MapMode::Still) {
callback(nullptr, view.readStillImage());

View File

@@ -157,7 +157,7 @@ void Painter::prepareTile(const Tile& tile) {
config.stencilFunc = { GL_EQUAL, ref, mask };
}
void Painter::render(const Style& style, TransformState state_, const FrameData& frame_, const TimePoint& time) {
void Painter::render(const Style& style, TransformState state_, const FrameData& frame_) {
state = state_;
frame = frame_;
@@ -214,7 +214,7 @@ void Painter::render(const Style& style, TransformState state_, const FrameData&
drawClippingMasks(sources);
}
frameHistory.record(time, state.getNormalizedZoom());
frameHistory.record(data.getAnimationTime(), state.getNormalizedZoom());
// Actually render the layers
if (debug::renderTree) { Log::Info(Event::Render, "{"); indent++; }

View File

@@ -88,8 +88,7 @@ public:
void render(const Style& style,
TransformState state,
const FrameData& frame,
const TimePoint& time);
const FrameData& frame);
// Renders debug information for a tile.
void renderTileDebug(const Tile& tile);