summaryrefslogtreecommitdiff
path: root/test/api/repeated_render.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/repeated_render.test.cpp')
-rw-r--r--test/api/repeated_render.test.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/api/repeated_render.test.cpp b/test/api/repeated_render.test.cpp
index cf71cb8416..4229f9d7ad 100644
--- a/test/api/repeated_render.test.cpp
+++ b/test/api/repeated_render.test.cpp
@@ -2,8 +2,9 @@
#include <mbgl/test/fixture_log_observer.hpp>
#include <mbgl/map/map.hpp>
-#include <mbgl/platform/default/headless_view.hpp>
#include <mbgl/platform/default/headless_display.hpp>
+#include <mbgl/platform/default/headless_view.hpp>
+#include <mbgl/platform/default/thread_pool.hpp>
#include <mbgl/storage/default_file_source.hpp>
#include <mbgl/util/image.hpp>
#include <mbgl/util/io.hpp>
@@ -20,6 +21,7 @@ TEST(API, RepeatedRender) {
auto display = std::make_shared<mbgl::HeadlessDisplay>();
HeadlessView view(display, 1, 256, 512);
+
#ifdef MBGL_ASSET_ZIP
// Regenerate with `cd test/fixtures/api/ && zip -r assets.zip assets/`
DefaultFileSource fileSource(":memory:", "test/fixtures/api/assets.zip");
@@ -27,9 +29,11 @@ TEST(API, RepeatedRender) {
DefaultFileSource fileSource(":memory:", "test/fixtures/api/assets");
#endif
+ ThreadPool threadPool(4);
+
Log::setObserver(std::make_unique<FixtureLogObserver>());
- Map map(view, fileSource, MapMode::Still);
+ Map map(view, fileSource, threadPool, MapMode::Still);
{
map.setStyleJSON(style);