diff options
Diffstat (limited to 'src/mbgl/renderer/buckets/fill_bucket.cpp')
-rw-r--r-- | src/mbgl/renderer/buckets/fill_bucket.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mbgl/renderer/buckets/fill_bucket.cpp b/src/mbgl/renderer/buckets/fill_bucket.cpp index 043882f138..517c9b184a 100644 --- a/src/mbgl/renderer/buckets/fill_bucket.cpp +++ b/src/mbgl/renderer/buckets/fill_bucket.cpp @@ -30,8 +30,7 @@ struct GeometryTooLongException : std::exception {}; FillBucket::FillBucket(const FillBucket::PossiblyEvaluatedLayoutProperties, std::map<std::string, FillBucket::PossiblyEvaluatedPaintProperties> layerPaintProperties, const float zoom, - const uint32_t) - : Bucket(LayerType::Fill) { + const uint32_t) { for (const auto& pair : layerPaintProperties) { paintPropertyBinders.emplace( @@ -43,6 +42,8 @@ FillBucket::FillBucket(const FillBucket::PossiblyEvaluatedLayoutProperties, } } +FillBucket::~FillBucket() = default; + void FillBucket::addFeature(const GeometryTileFeature& feature, const GeometryCollection& geometry, const ImagePositions& patternPositions, @@ -136,6 +137,11 @@ bool FillBucket::hasData() const { return !triangleSegments.empty() || !lineSegments.empty(); } +bool FillBucket::supportsLayer(const style::Layer::Impl& impl) const { + return style::FillLayer::Impl::staticTypeInfo() == impl.getTypeInfo(); +} + + float FillBucket::getQueryRadius(const RenderLayer& layer) const { const RenderFillLayer* fillLayer = toRenderFillLayer(&layer); const std::array<float, 2>& translate = fillLayer->evaluated.get<FillTranslate>(); |