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

namespace mbgl {

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

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

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

} // namespace mbgl