Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Order render items properly across several sources #14408

Merged
merged 2 commits into from
Apr 12, 2019

Conversation

pozdnyakov
Copy link
Contributor

Fixes #14402

Running benchmark tests locally does not show regressions.

Copy link
Contributor

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with nit

@@ -257,7 +263,7 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
if (layerNeedsRendering) {
sourceNeedsRendering = true;
filteredLayersForSource.push_back(layerImpl);
renderItems.emplace_back(*layer, source);
renderItems.emplace(*layer, source, index);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe emplace_hint?

@pozdnyakov pozdnyakov merged commit 4bc79cf into master Apr 12, 2019
@pozdnyakov pozdnyakov deleted the mikhail_sort_render_items branch April 12, 2019 13:18
@bwuso bwuso mentioned this pull request Apr 12, 2019
@chloekraw chloekraw added the Core The cross-platform C++ core, aka mbgl label Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render items order is affected in case several sources are involved
4 participants