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

[core] Less strict rules for adding render layers to sources #14527

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

pozdnyakov
Copy link
Contributor

This is the partial revert of 8faf47a

Zoom check at RenderLayer::needsRendering() was too strict, which prevented adding tile buckets for the layers whose minZoom was just slightly bigger than zoomHistory.lastZoom (e.g. lastZoom: 11.9522, min zoom: 12).

Fixes: #14523

@pozdnyakov pozdnyakov requested review from kkaefer and alexshalamov and removed request for kkaefer April 26, 2019 20:08
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.

Would be good to have a render test.

&& baseImpl->visibility != style::VisibilityType::None;
}

bool RenderLayer::zoomFits(float zoom) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

canRenderAtZoom, withinSupportedZoomRange or supportsZoom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

supportsZoom lgtm!

@pozdnyakov pozdnyakov merged commit 4c8295e into master Apr 29, 2019
@pozdnyakov pozdnyakov deleted the mikhail_fix_14523 branch April 29, 2019 14:03
@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.

Some layers don't render after panning
3 participants