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:
pre-commit-ci[bot]
2023-06-01 16:01:34 +00:00
committed by Bart Louwers
parent ee7f57fcb4
commit e771363d4b
2 changed files with 5 additions and 5 deletions

View File

@@ -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();

View File

@@ -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() {