[core] Geometry tile updates layer render data if its constants mask remains
Thus, we do not have to wait for tile update completion in case the updated properties have the same constants mask, i.e. fit the existing bucket.
This commit is contained in:
@@ -212,13 +212,14 @@ const LayerRenderData* GeometryTile::getLayerRenderData(const style::Layer::Impl
|
||||
return that->getMutableLayerRenderData(layerImpl);
|
||||
}
|
||||
|
||||
bool GeometryTile::updateLayerProperties(const Immutable<style::LayerProperties>& layerProperties) {
|
||||
bool GeometryTile::layerPropertiesUpdated(const Immutable<style::LayerProperties>& layerProperties) {
|
||||
LayerRenderData* renderData = getMutableLayerRenderData(*layerProperties->baseImpl);
|
||||
if (!renderData) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (renderData->layerProperties != layerProperties) {
|
||||
if (renderData->layerProperties != layerProperties &&
|
||||
renderData->layerProperties->constantsMask() == layerProperties->constantsMask()) {
|
||||
renderData->layerProperties = layerProperties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user