[core] Get FileSource via UpdateParameters in Renderer::Impl
This commit is contained in:
@@ -31,7 +31,7 @@ public:
|
||||
StubFileSource fileSource;
|
||||
ThreadPool threadPool { 4 };
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, threadPool };
|
||||
|
||||
Map map { frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapOptions().withMapMode(MapMode::Static)};
|
||||
|
||||
@@ -25,7 +25,7 @@ TEST(API, RenderWithoutCallback) {
|
||||
StubFileSource fileSource;
|
||||
ThreadPool threadPool(4);
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, threadPool };
|
||||
|
||||
auto map = std::make_unique<Map>(frontend, MapObserver::nullObserver(), frontend.getSize(),
|
||||
pixelRatio, fileSource, threadPool,
|
||||
|
||||
@@ -23,7 +23,7 @@ TEST(CustomGeometrySource, Grid) {
|
||||
DefaultFileSource fileSource(":memory:", "test/fixtures/api/assets");
|
||||
auto threadPool = sharedThreadPool();
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, *threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, *threadPool };
|
||||
Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
*threadPool, MapOptions().withMapMode(MapMode::Static));
|
||||
map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));
|
||||
|
||||
@@ -93,7 +93,7 @@ TEST(CustomLayer, Basic) {
|
||||
DefaultFileSource fileSource(":memory:", "test/fixtures/api/assets");
|
||||
ThreadPool threadPool(4);
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, threadPool };
|
||||
Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapOptions().withMapMode(MapMode::Static));
|
||||
map.getStyle().loadJSON(util::read_file("test/fixtures/api/water.json"));
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
StubFileSource fileSource;
|
||||
ThreadPool threadPool { 4 };
|
||||
float pixelRatio { 1 };
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, threadPool };
|
||||
Map map { frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, fileSource,
|
||||
threadPool, MapOptions().withMapMode(MapMode::Static)};
|
||||
};
|
||||
|
||||
@@ -28,7 +28,7 @@ TEST(API, RecycleMapUpdateImages) {
|
||||
ThreadPool threadPool(4);
|
||||
float pixelRatio { 1 };
|
||||
|
||||
HeadlessFrontend frontend { pixelRatio, fileSource, threadPool };
|
||||
HeadlessFrontend frontend { pixelRatio, threadPool };
|
||||
auto map = std::make_unique<Map>(frontend, MapObserver::nullObserver(), frontend.getSize(),
|
||||
pixelRatio, fileSource, threadPool,
|
||||
MapOptions().withMapMode(MapMode::Static));
|
||||
|
||||
Reference in New Issue
Block a user