[pre-commit.ci] pre-commit autoupdate (#2548)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot]
2024-06-25 00:55:14 +02:00
committed by GitHub
parent a24d68436d
commit 169dc065c5
3 changed files with 13 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ repos:
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents] args: [--allow-multiple-documents]
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.6 rev: v18.1.7
hooks: hooks:
- id: clang-format - id: clang-format
files: '.*\.(hpp|cpp|h)' files: '.*\.(hpp|cpp|h)'

View File

@@ -50,11 +50,10 @@ public:
if (res.kind == Resource::Kind::Tile) { if (res.kind == Resource::Kind::Tile) {
// onlineResponse.data will be null if data not modified // onlineResponse.data will be null if data not modified
MBGL_TIMING_FINISH(watch, MBGL_TIMING_FINISH(watch,
" Action: " " Action: " << "Requesting,"
<< "Requesting," << " URL: " << res.url.c_str() << " Size: "
<< " URL: " << res.url.c_str() << " Size: " << (response.data != nullptr ? response.data->size() : 0) << "B,"
<< (response.data != nullptr ? response.data->size() : 0) << "B," << " Time")
<< " Time")
} }
callback(response); callback(response);
}); });

View File

@@ -466,10 +466,10 @@ void GeometryTileWorker::parse() {
requestNewImages(imageDependencies); requestNewImages(imageDependencies);
MBGL_TIMING_FINISH(watch, MBGL_TIMING_FINISH(watch,
" Action: " " Action: " << "Parsing,"
<< "Parsing," << " SourceID: " << sourceID.c_str()
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z) << " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time"); << id.canonical.y << " Time");
finalizeLayout(); finalizeLayout();
} }
@@ -522,10 +522,10 @@ void GeometryTileWorker::finalizeLayout() {
firstLoad = false; firstLoad = false;
MBGL_TIMING_FINISH(watch, MBGL_TIMING_FINISH(watch,
" Action: " " Action: " << "SymbolLayout,"
<< "SymbolLayout," << " SourceID: " << sourceID.c_str()
<< " SourceID: " << sourceID.c_str() << " Canonical: " << static_cast<int>(id.canonical.z) << " Canonical: " << static_cast<int>(id.canonical.z) << "/" << id.canonical.x << "/"
<< "/" << id.canonical.x << "/" << id.canonical.y << " Time"); << id.canonical.y << " Time");
parent.invoke(&GeometryTile::onLayout, parent.invoke(&GeometryTile::onLayout,
std::make_shared<GeometryTile::LayoutResult>( std::make_shared<GeometryTile::LayoutResult>(