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-05-11 23:44:37 +00:00
committed by Bart Louwers
parent 6a1b48bb45
commit 20a30e41b7
3 changed files with 8 additions and 8 deletions

View File

@@ -56,7 +56,8 @@ gfx::UniqueDrawable TileLayerGroup::removeDrawable(mbgl::RenderPass pass, const
}
bool TileLayerGroup::addDrawable(mbgl::RenderPass pass, const OverscaledTileID& id, gfx::UniqueDrawable&& drawable) {
const auto result = impl->tileDrawables.insert(std::make_pair(TileLayerGroupTileKey{pass, id}, gfx::UniqueDrawable()));
const auto result = impl->tileDrawables.insert(
std::make_pair(TileLayerGroupTileKey{pass, id}, gfx::UniqueDrawable()));
if (result.second) {
return false;
} else {
@@ -66,7 +67,6 @@ bool TileLayerGroup::addDrawable(mbgl::RenderPass pass, const OverscaledTileID&
}
void TileLayerGroup::render([[maybe_unused]] RenderOrchestrator& orchestrator,
[[maybe_unused]] PaintParameters& parameters) {
}
[[maybe_unused]] PaintParameters& parameters) {}
} // namespace mbgl

View File

@@ -396,7 +396,7 @@ void RenderFillLayer::update(const int32_t layerIndex,
auto& tileDrawable = tileLayerGroup->getDrawable(renderPass, tileID);
const auto removeTile = [&](){
const auto removeTile = [&]() {
if (tileDrawable) {
changes.emplace_back(std::make_unique<RemoveDrawableRequest>(tileDrawable->getId()));
tileLayerGroup->removeDrawable(renderPass, tileID);
@@ -409,7 +409,7 @@ void RenderFillLayer::update(const int32_t layerIndex,
removeTile();
continue;
}
auto& bucket = static_cast<FillBucket&>(*renderData->bucket);
const auto& evaluated = getEvaluated<FillLayerProperties>(renderData->layerProperties);
const auto evalColor = evaluated.get<FillColor>().constantOr(Color());
@@ -482,8 +482,8 @@ void RenderFillLayer::update(const int32_t layerIndex,
// if (evaluated.get<FillAntialias>() && parameters.pass == RenderPass::Translucent) {
// draw(*fillOutlineProgram,
// gfx::Lines{2.0f},
// parameters.depthModeForSublayer(unevaluated.get<FillOutlineColor>().isUndefined() ? 2
// : 0,
// parameters.depthModeForSublayer(unevaluated.get<FillOutlineColor>().isUndefined()
// ? 2 : 0,
// gfx::DepthMaskType::ReadOnly),
// *bucket.lineIndexBuffer,
// bucket.lineSegments,

View File

@@ -54,7 +54,7 @@ private:
std::shared_ptr<FillPatternProgram> fillPatternProgram;
std::shared_ptr<FillOutlineProgram> fillOutlineProgram;
std::shared_ptr<FillOutlinePatternProgram> fillOutlinePatternProgram;
TileLayerGroupPtr tileLayerGroup;
};