Drawable Renderer (#1570), Add guards around bucket IDs

This commit is contained in:
mwilsnd
2023-07-13 15:32:47 -05:00
committed by Bart Louwers
parent 7f862cd8ff
commit 0d0ad6a8f5

View File

@@ -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