[core] Removed time param from Painter::render
Animation time can be obtained directly from MapData.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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++; }
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user