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:
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user