-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with nit 👍
@@ -16,6 +16,7 @@ class BucketParameters; | |||
class CircleBucket : public Bucket { | |||
public: | |||
CircleBucket(const BucketParameters&, const std::vector<const RenderLayer*>&); | |||
~CircleBucket() override; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: declare as final
? Also, for the rest of buckets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 however, making the whole class final
makes it more readable
5a0f83e
to
f4b9a3d
Compare
src/mbgl/renderer/bucket.hpp
Outdated
// Implementations of this class check at least that this bucket has | ||
// the same layer type with the given layer, but extra checks are also | ||
// possible. | ||
virtual bool fitsLayer(const style::Layer::Impl&) const { return true; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supports / accepts? Layer is parameter, Bucket.supports(Layer)
looks bit better, imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks!
Drop LayerType and its remaining usages. The generic code should be layer type agnostic.
f4b9a3d
to
ef66bd4
Compare
Drop
LayerType
and its remaining usages.The generic code should be layer type agnostic.