[core] split off render layers

This commit is contained in:
Ivo van Dongen
2017-04-21 09:19:47 -07:00
committed by Ivo van Dongen
parent ea8ec38df1
commit 3c175adf30
104 changed files with 1717 additions and 1116 deletions

View File

@@ -0,0 +1,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;
}
}