diff options
Diffstat (limited to 'test/src/mbgl/test/util.cpp')
-rw-r--r-- | test/src/mbgl/test/util.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/src/mbgl/test/util.cpp b/test/src/mbgl/test/util.cpp index a674eafeb4..7f98c43dc9 100644 --- a/test/src/mbgl/test/util.cpp +++ b/test/src/mbgl/test/util.cpp @@ -1,6 +1,7 @@ #include <mbgl/test/util.hpp> #include <mbgl/map/map.hpp> +#include <mbgl/platform/default/offscreen_view.hpp> #include <mbgl/platform/log.hpp> #include <mbgl/util/image.hpp> #include <mbgl/util/io.hpp> @@ -97,10 +98,10 @@ Server::~Server() { } } -PremultipliedImage render(Map& map) { +PremultipliedImage render(Map& map, OffscreenView& view) { PremultipliedImage result; - map.renderStill([&result](std::exception_ptr, PremultipliedImage&& image) { - result = std::move(image); + map.renderStill(view, [&](std::exception_ptr) { + result = view.readStillImage(); }); while (!result.size()) { |