diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-05 18:04:15 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-07-18 10:45:12 +0200 |
commit | a5a0558bde5d67617b6f305179063cd4e0ac329e (patch) | |
tree | 346e4a6831ff991c5e805b1ae0616839ac9c7b62 /test/src | |
parent | 815ffb253b555c9a99b7d63a343745db05802c76 (diff) | |
download | qtlocation-mapboxgl-a5a0558bde5d67617b6f305179063cd4e0ac329e.tar.gz |
[test] allow only a single shared display to avoid egl errors
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/mbgl/test/util.cpp | 6 | ||||
-rw-r--r-- | test/src/mbgl/test/util.hpp | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/test/src/mbgl/test/util.cpp b/test/src/mbgl/test/util.cpp index f3b0bbc96f..0b1034e315 100644 --- a/test/src/mbgl/test/util.cpp +++ b/test/src/mbgl/test/util.cpp @@ -2,7 +2,6 @@ #include <mbgl/map/map.hpp> #include <mbgl/gl/offscreen_view.hpp> -#include <mbgl/gl/headless_display.hpp> #include <mbgl/util/logging.hpp> #include <mbgl/util/image.hpp> #include <mbgl/util/io.hpp> @@ -99,11 +98,6 @@ Server::~Server() { } } -std::shared_ptr<HeadlessDisplay> sharedDisplay() { - static auto display = std::make_shared<HeadlessDisplay>(); - return display; -} - PremultipliedImage render(Map& map, OffscreenView& view) { PremultipliedImage result; map.renderStill([&](std::exception_ptr) { diff --git a/test/src/mbgl/test/util.hpp b/test/src/mbgl/test/util.hpp index 8673155fe4..9c015f1641 100644 --- a/test/src/mbgl/test/util.hpp +++ b/test/src/mbgl/test/util.hpp @@ -70,8 +70,6 @@ private: int fd = -1; }; -std::shared_ptr<HeadlessDisplay> sharedDisplay(); - PremultipliedImage render(Map&, OffscreenView&); void checkImage(const std::string& base, |