Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[core] Show tile collision and parser status when building Debug #15855

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion render-test/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,11 @@ TestRunner::Impl::Impl(const TestMetadata& metadata)
.withSize(metadata.size)
.withPixelRatio(metadata.pixelRatio)
.withCrossSourceCollisions(metadata.crossSourceCollisions),
mbgl::ResourceOptions().withCacheOnlyRequestsSupport(false)) {}
mbgl::ResourceOptions().withCacheOnlyRequestsSupport(false)) {
#ifndef NDEBUG
map.setDebug(MapDebugOptions::NoDebug);
#endif
}

TestRunner::Impl::~Impl() {}

Expand Down
14 changes: 10 additions & 4 deletions src/mbgl/map/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ Map::Map(RendererFrontend& frontend,
MapObserver& observer,
const MapOptions& mapOptions,
const ResourceOptions& resourceOptions)
: impl(std::make_unique<Impl>(frontend, observer,
FileSource::getSharedFileSource(resourceOptions),
mapOptions)) {}
: impl(std::make_unique<Impl>(frontend, observer, FileSource::getSharedFileSource(resourceOptions), mapOptions)) {
#ifndef NDEBUG
setDebug(MapDebugOptions::TileBorders | MapDebugOptions::ParseStatus);
#endif
}

Map::Map(std::unique_ptr<Impl> impl_) : impl(std::move(impl_)) {}
Map::Map(std::unique_ptr<Impl> impl_) : impl(std::move(impl_)) {
#ifndef NDEBUG
setDebug(MapDebugOptions::TileBorders | MapDebugOptions::ParseStatus);
#endif
}

Map::~Map() = default;

Expand Down