summaryrefslogtreecommitdiff
path: root/test/text
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-21 23:11:27 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-22 12:23:39 +0300
commit11bfe2398111dbca232b744db9b50119e7d3c495 (patch)
tree02bc511e315832a780d18ca8f51a8003e5741cb2 /test/text
parent3184cb29db069e990dab1ea4e784aad0aaa1048b (diff)
downloadqtlocation-mapboxgl-11bfe2398111dbca232b744db9b50119e7d3c495.tar.gz
[core] Symbol bucket uses shared layout
sizeof(SymbolBucket): 2296 -> 1024
Diffstat (limited to 'test/text')
-rw-r--r--test/text/cross_tile_symbol_index.test.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/text/cross_tile_symbol_index.test.cpp b/test/text/cross_tile_symbol_index.test.cpp
index f121781766..841f73c699 100644
--- a/test/text/cross_tile_symbol_index.test.cpp
+++ b/test/text/cross_tile_symbol_index.test.cpp
@@ -21,7 +21,8 @@ TEST(CrossTileSymbolLayerIndex, addBucket) {
uint32_t maxBucketInstanceId = 0;
CrossTileSymbolLayerIndex index;
- style::SymbolLayoutProperties::PossiblyEvaluated layout;
+ Immutable<style::SymbolLayoutProperties::PossiblyEvaluated> layout =
+ makeMutable<style::SymbolLayoutProperties::PossiblyEvaluated>();
bool sdfIcons = false;
bool iconsNeedLinear = false;
bool sortFeaturesByY = false;
@@ -95,7 +96,8 @@ TEST(CrossTileSymbolLayerIndex, resetIDs) {
uint32_t maxBucketInstanceId = 0;
CrossTileSymbolLayerIndex index;
- style::SymbolLayoutProperties::PossiblyEvaluated layout;
+ Immutable<style::SymbolLayoutProperties::PossiblyEvaluated> layout =
+ makeMutable<style::SymbolLayoutProperties::PossiblyEvaluated>();
bool sdfIcons = false;
bool iconsNeedLinear = false;
bool sortFeaturesByY = false;
@@ -135,7 +137,8 @@ TEST(CrossTileSymbolLayerIndex, noDuplicatesWithinZoomLevel) {
uint32_t maxBucketInstanceId = 0;
CrossTileSymbolLayerIndex index;
- style::SymbolLayoutProperties::PossiblyEvaluated layout;
+ Immutable<style::SymbolLayoutProperties::PossiblyEvaluated> layout =
+ makeMutable<style::SymbolLayoutProperties::PossiblyEvaluated>();
bool sdfIcons = false;
bool iconsNeedLinear = false;
bool sortFeaturesByY = false;
@@ -173,7 +176,8 @@ TEST(CrossTileSymbolLayerIndex, bucketReplacement) {
uint32_t maxBucketInstanceId = 0;
CrossTileSymbolLayerIndex index;
- style::SymbolLayoutProperties::PossiblyEvaluated layout;
+ Immutable<style::SymbolLayoutProperties::PossiblyEvaluated> layout =
+ makeMutable<style::SymbolLayoutProperties::PossiblyEvaluated>();
bool sdfIcons = false;
bool iconsNeedLinear = false;
bool sortFeaturesByY = false;