summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_custom_layer.cpp
blob: d89fa7bba25a71f59ef1a70790bebc5aa5ecb257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <mbgl/renderer/render_custom_layer.hpp>
#include <mbgl/style/layers/custom_layer_impl.hpp>
#include <mbgl/renderer/bucket.hpp>

namespace mbgl {

RenderCustomLayer::RenderCustomLayer(const style::CustomLayer::Impl& _impl)
        : RenderLayer(style::LayerType::Custom, _impl),
          impl(&_impl) {
}

std::unique_ptr<RenderLayer> RenderCustomLayer::clone() const {
    return std::make_unique<RenderCustomLayer>(*this);
}

void RenderCustomLayer::evaluate(const PropertyEvaluationParameters&) {
    passes = RenderPass::Translucent;
}

bool RenderCustomLayer::hasTransition() const {
    return false;
}

std::unique_ptr<Bucket> RenderCustomLayer::createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) const {
    assert(false);
    return nullptr;
}
    
} // namespace mbgl