Drawable Renderer (#1570), Add guards around bucket IDs
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
#include <mbgl/style/image_impl.hpp>
|
||||
#include <mbgl/renderer/image_atlas.hpp>
|
||||
#include <mbgl/style/layer_impl.hpp>
|
||||
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
#include <mbgl/util/identity.hpp>
|
||||
#endif
|
||||
|
||||
#include <atomic>
|
||||
|
||||
@@ -67,13 +70,17 @@ public:
|
||||
virtual void updateVertices(
|
||||
const Placement&, bool /*updateOpacities*/, const TransformState&, const RenderTile&, std::set<uint32_t>&) {}
|
||||
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
const util::SimpleIdentity& getID() const { return bucketID; }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
Bucket() = default;
|
||||
std::atomic<bool> uploaded{false};
|
||||
|
||||
#if MLN_DRAWABLE_RENDERER
|
||||
util::SimpleIdentity bucketID;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user