summaryrefslogtreecommitdiff
path: root/test/algorithm
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-10-13 17:53:30 -0700
committerKonstantin Käfer <mail@kkaefer.com>2017-10-17 15:08:22 -0700
commitcbff0a972a9e0a4210c94de1c36f0dce278d01e9 (patch)
treeb784305daa1b487774e2b02ee34a923d5d25b47a /test/algorithm
parent12f78fc8747332a3d54763c9b0cc2e794eefb4f8 (diff)
downloadqtlocation-mapboxgl-cbff0a972a9e0a4210c94de1c36f0dce278d01e9.tar.gz
[core] don't generate clip IDs for buckets/layers that don't need to be clipped
Diffstat (limited to 'test/algorithm')
-rw-r--r--test/algorithm/generate_clip_ids.test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/algorithm/generate_clip_ids.test.cpp b/test/algorithm/generate_clip_ids.test.cpp
index 1ebdccb99e..9dc86305af 100644
--- a/test/algorithm/generate_clip_ids.test.cpp
+++ b/test/algorithm/generate_clip_ids.test.cpp
@@ -8,13 +8,16 @@ struct Renderable {
UnwrappedTileID id;
ClipID clip;
bool used;
+ bool needsClipping;
Renderable(UnwrappedTileID id_,
ClipID clip_,
- bool used_ = true)
+ bool used_ = true,
+ bool needsClipping_ = true)
: id(std::move(id_)),
clip(std::move(clip_)),
- used(used_) {}
+ used(used_),
+ needsClipping(needsClipping_) {}
bool operator==(const Renderable& rhs) const {
return id == rhs.id && clip == rhs.clip;