summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-10-20 12:19:11 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-10-26 15:54:27 +0100
commitc0c554e36fd43bfe57ef13fe60f9cd50b5c018fd (patch)
treeb2c2cbbac1af0a6afbc9de51b90179ec3edaf32f /test
parent5173bf1bb8d21054b0dd6251d23eb37323d6c525 (diff)
downloadqtlocation-mapboxgl-c0c554e36fd43bfe57ef13fe60f9cd50b5c018fd.tar.gz
[core] reparse tiles when new data arrives
We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object.
Diffstat (limited to 'test')
-rw-r--r--test/style/resource_loading.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp
index e0c4590c7c..c6f1c1dfae 100644
--- a/test/style/resource_loading.cpp
+++ b/test/style/resource_loading.cpp
@@ -38,6 +38,10 @@ public:
}
~MockMapContext() {
+ cleanup();
+ }
+
+ void cleanup() {
style_.reset();
}
@@ -118,6 +122,7 @@ void runTestCase(MockFileSource::Type type,
// Needed because it will make the Map thread
// join and cease logging after this point.
+ context->invoke(&MockMapContext::cleanup);
context.reset();
uint32_t match = 0;