Drawable Renderer (#1570), [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
Bart Louwers
parent
ee7f57fcb4
commit
e771363d4b
@@ -77,7 +77,7 @@ public:
|
||||
~TileLayerGroup() override;
|
||||
|
||||
void updateLayerIndex(int32_t newLayerIndex);
|
||||
|
||||
|
||||
std::size_t getDrawableCount() const;
|
||||
std::size_t getDrawableCount(mbgl::RenderPass, const OverscaledTileID&) const;
|
||||
|
||||
@@ -89,8 +89,7 @@ public:
|
||||
void observeDrawables(std::function<void(gfx::UniqueDrawable&)>) override;
|
||||
|
||||
/// Call the provided function for each drawable for the given tile
|
||||
void observeDrawables(mbgl::RenderPass, const OverscaledTileID&,
|
||||
std::function<void(const gfx::Drawable&)>) const;
|
||||
void observeDrawables(mbgl::RenderPass, const OverscaledTileID&, std::function<void(const gfx::Drawable&)>) const;
|
||||
|
||||
std::size_t clearDrawables();
|
||||
|
||||
|
||||
@@ -100,10 +100,11 @@ void TileLayerGroup::observeDrawables(std::function<void(gfx::UniqueDrawable&)>
|
||||
}
|
||||
}
|
||||
|
||||
void TileLayerGroup::observeDrawables(mbgl::RenderPass pass, const OverscaledTileID& tileID,
|
||||
void TileLayerGroup::observeDrawables(mbgl::RenderPass pass,
|
||||
const OverscaledTileID& tileID,
|
||||
std::function<void(const gfx::Drawable&)> f) const {
|
||||
const auto range = impl->tileDrawables.equal_range({pass, tileID});
|
||||
std::for_each(range.first, range.second, [&f](const auto& pair){ f(*pair.second); });
|
||||
std::for_each(range.first, range.second, [&f](const auto& pair) { f(*pair.second); });
|
||||
}
|
||||
|
||||
std::size_t TileLayerGroup::clearDrawables() {
|
||||
|
||||
Reference in New Issue
Block a user