blob: f9dda47d7a87b44398ef8120da93dc1931204c1a (
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
|
#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);
}
bool RenderCustomLayer::evaluate(const style::PropertyEvaluationParameters&) {
passes = RenderPass::Translucent;
return false;
}
std::unique_ptr<Bucket> RenderCustomLayer::createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) const {
assert(false);
return nullptr;
}
}
|