summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/bucket.hpp
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 /src/mbgl/renderer/bucket.hpp
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 'src/mbgl/renderer/bucket.hpp')
-rw-r--r--src/mbgl/renderer/bucket.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/renderer/bucket.hpp b/src/mbgl/renderer/bucket.hpp
index a1dbdeeed7..9e89c88135 100644
--- a/src/mbgl/renderer/bucket.hpp
+++ b/src/mbgl/renderer/bucket.hpp
@@ -32,6 +32,8 @@ public:
virtual ~Bucket() {}
+ virtual bool hasData() const = 0;
+
inline bool needsUpload() const {
return !uploaded;
}