diff options
Diffstat (limited to 'src/mbgl/style/layer_impl.cpp')
-rw-r--r-- | src/mbgl/style/layer_impl.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mbgl/style/layer_impl.cpp b/src/mbgl/style/layer_impl.cpp new file mode 100644 index 0000000000..74cc80d253 --- /dev/null +++ b/src/mbgl/style/layer_impl.cpp @@ -0,0 +1,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 |