Add Tile LOD controls (#2958)

Co-authored-by: Bart Louwers <bart@emeel.net>
Co-authored-by: Adrian Cojocaru <adrian.cojocaru92@yahoo.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
alasram
2025-06-04 05:49:41 -07:00
committed by GitHub
parent 2e4541c441
commit b11134a301
43 changed files with 1066 additions and 114 deletions

View File

@@ -74,5 +74,12 @@ void checkImage(const std::string& base,
double imageThreshold = 0,
double pixelThreshold = 0);
void checkImages(const std::vector<std::string>& possibleExpected,
const PremultipliedImage& actual,
double imageThreshold = 0,
double pixelThreshold = 0);
double getImageDiff(const std::string& base, const PremultipliedImage& actual, double pixelThreshold = 0);
} // namespace test
} // namespace mbgl

View File

@@ -34,17 +34,17 @@ public:
VectorTileTest()
: threadPool(Scheduler::GetBackground(), uniqueID),
tileParameters{1.0,
MapDebugOptions(),
transformState,
fileSource,
MapMode::Continuous,
annotationManager.makeWeakPtr(),
imageManager,
glyphManager,
0,
threadPool,
dynamicTextureAtlas},
tileParameters{.pixelRatio = 1.0,
.debugOptions = MapDebugOptions(),
.transformState = transformState,
.fileSource = fileSource,
.mode = MapMode::Continuous,
.annotationManager = annotationManager.makeWeakPtr(),
.imageManager = imageManager,
.glyphManager = glyphManager,
.prefetchZoomDelta = 0,
.threadPool = threadPool,
.dynamicTextureAtlas = dynamicTextureAtlas},
style{fileSource, 1, threadPool} {}
~VectorTileTest() {