diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-23 11:46:22 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-28 14:32:24 -0400 |
commit | a625ba8a0976ef8417a2609700187c5633be2c58 (patch) | |
tree | ee61c1e8b6bde556b2c93f4730ea806547f6090a /test/headless | |
parent | c84e8862226e6f89538b34fafd592182caf9008b (diff) | |
download | qtlocation-mapboxgl-a625ba8a0976ef8417a2609700187c5633be2c58.tar.gz |
Remove Map::start/stop
Both Android and iOS now use pause/resume. The map thread is
always running, and be able to receive messages. When paused,
it will just refuse to render.
Diffstat (limited to 'test/headless')
-rw-r--r-- | test/headless/headless.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp index 6cd0870546..5a76743774 100644 --- a/test/headless/headless.cpp +++ b/test/headless/headless.cpp @@ -144,11 +144,9 @@ TEST_P(HeadlessTest, render) { HeadlessView view(display, width, height, pixelRatio); DefaultFileSource fileSource(nullptr); - Map map(view, fileSource); + Map map(view, fileSource, MapMode::Still); map.resize(width, height, pixelRatio); - map.start(MapMode::Still); - map.setClasses(classes); map.setStyleJSON(style, "test/suite"); map.setLatLngZoom(mbgl::LatLng(latitude, longitude), zoom); @@ -163,8 +161,6 @@ TEST_P(HeadlessTest, render) { }); promise.get_future().get(); - - map.stop(); } } |