Issue #15065 changelogs and nit fix.
This commit is contained in:
@@ -5,6 +5,7 @@ Mapbox welcomes participation and contributions from everyone. If you'd like to
|
||||
## master
|
||||
|
||||
* Performance improvements for queryRenderedFeatures API and optimization that allocates containers based on a number of rendered layers. ([#14930](https://github.com/mapbox/mapbox-gl-native/pull/14930))
|
||||
- Fixed rendering layers after fill-extrusion regression caused by optimization of fill-extrusion rendering [#15065](https://github.com/mapbox/mapbox-gl-native/pull/15065)
|
||||
|
||||
## 8.2.0-alpha.2 - July 3, 2019
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
## master
|
||||
|
||||
* Performance improvements for queryRenderedFeatures API and optimization that allocates containers based on a number of rendered layers. ([#14930](https://github.com/mapbox/mapbox-gl-native/pull/14930))
|
||||
* Fixed rendering layers after fill-extrusion regression caused by optimization of fill-extrusion rendering. ([#15065](https://github.com/mapbox/mapbox-gl-native/pull/15065))
|
||||
|
||||
## 5.2.0
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
* Added an `MGLMapView.prefetchesTiles` property to configure lower-resolution tile prefetching behavior. ([#14816](https://github.com/mapbox/mapbox-gl-native/pull/14816))
|
||||
* Fixed queryRenderedFeatues bug caused by incorrect sort feature index calculation. ([#14884](https://github.com/mapbox/mapbox-gl-native/pull/14884))
|
||||
* Performance improvements for queryRenderedFeatures API and optimization that allocates containers based on a number of rendered layers. ([#14930](https://github.com/mapbox/mapbox-gl-native/pull/14930))
|
||||
* Fixed rendering layers after fill-extrusion regression caused by optimization of fill-extrusion rendering. ([#15065](https://github.com/mapbox/mapbox-gl-native/pull/15065))
|
||||
|
||||
### Styles and rendering
|
||||
|
||||
|
||||
@@ -342,15 +342,16 @@ std::unique_ptr<RenderTree> RenderOrchestrator::createRenderTree(const UpdatePar
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t i = static_cast<uint32_t>(layerRenderItems.size()) - 1;
|
||||
for (auto it = layerRenderItems.begin(); it != layerRenderItems.end(); ++it, --i) {
|
||||
RenderLayer& renderLayer = it->layer;
|
||||
renderLayer.prepare({it->source, *imageManager, *patternAtlas, *lineAtlas, updateParameters.transformState});
|
||||
auto opaquePassCutOffEstimation = layerRenderItems.size();
|
||||
for (auto& renderItem : layerRenderItems) {
|
||||
RenderLayer& renderLayer = renderItem.layer;
|
||||
renderLayer.prepare({renderItem.source, *imageManager, *patternAtlas, *lineAtlas, updateParameters.transformState});
|
||||
if (renderLayer.needsPlacement()) {
|
||||
layersNeedPlacement.emplace_back(renderLayer);
|
||||
}
|
||||
if (renderLayer.is3D() && renderTreeParameters->opaquePassCutOff == 0) {
|
||||
renderTreeParameters->opaquePassCutOff = i;
|
||||
--opaquePassCutOffEstimation;
|
||||
renderTreeParameters->opaquePassCutOff = uint32_t(opaquePassCutOffEstimation);
|
||||
}
|
||||
}
|
||||
// Symbol placement.
|
||||
|
||||
Reference in New Issue
Block a user