Drawable LayerGroup sorting, depth buffer, split view (#1173)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -18,4 +18,16 @@ void RemoveLayerGroupRequest::execute(RenderOrchestrator &orchestrator) {
|
||||
orchestrator.removeLayerGroup(layerIndex);
|
||||
}
|
||||
|
||||
UpdateLayerGroupIndexRequest::UpdateLayerGroupIndexRequest(std::shared_ptr<TileLayerGroup> tileLayerGroup_,
|
||||
int32_t newLayerIndex_)
|
||||
: tileLayerGroup(std::move(tileLayerGroup_)),
|
||||
newLayerIndex(newLayerIndex_) {}
|
||||
|
||||
void UpdateLayerGroupIndexRequest::execute(RenderOrchestrator &orchestrator) {
|
||||
// Update the index of a tile layer group and indicate to the orchestator that it must rebuild the map of ordered
|
||||
// layer groups
|
||||
tileLayerGroup->updateLayerIndex(newLayerIndex);
|
||||
orchestrator.markLayerGroupOrderDirty();
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user