Get rid of MapData::{get,set}NeedsRepaint
This commit is contained in:
@@ -256,8 +256,6 @@ void MapContext::update() {
|
||||
|
||||
if (!style) {
|
||||
updateFlags = Update::Nothing;
|
||||
} else if (data.getNeedsRepaint()) {
|
||||
updateFlags |= Update::Repaint;
|
||||
}
|
||||
|
||||
if (updateFlags == Update::Nothing || (data.mode == MapMode::Still && !callback)) {
|
||||
@@ -350,10 +348,8 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
|
||||
view.afterRender();
|
||||
|
||||
if (style->hasTransitions() || painter->needsAnimation()) {
|
||||
data.setNeedsRepaint(true);
|
||||
updateFlags |= Update::Repaint;
|
||||
asyncUpdate->send();
|
||||
} else {
|
||||
data.setNeedsRepaint(false);
|
||||
}
|
||||
|
||||
return isLoaded();
|
||||
|
||||
Reference in New Issue
Block a user