summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layer_impl.cpp
blob: 74cc80d2531c0f8234e39998b5dce0adebf3ab2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <mbgl/style/layer_impl.hpp>

namespace mbgl {
namespace style {

const std::string& Layer::Impl::bucketName() const {
    return ref.empty() ? id : ref;
}

bool Layer::Impl::hasRenderPass(RenderPass pass) const {
    return bool(passes & pass);
}

bool Layer::Impl::needsRendering() const {
    return passes != RenderPass::None && visibility != VisibilityType::None;
}

} // namespace style
} // namespace mbgl