summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2018-11-05 13:12:36 -0800
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2018-11-05 13:12:36 -0800
commit3006f1b1f109bc777b937562cdfaf6c0454012ce (patch)
treee5ea88ec6523ce864126c05856ee77a0872f834a
parent4f8545afa35f140541a755f64bf847cb7ee001aa (diff)
downloadqtlocation-mapboxgl-3006f1b1f109bc777b937562cdfaf6c0454012ce.tar.gz
Fix benchmark builds
-rw-r--r--benchmark/function/composite_function.benchmark.cpp2
-rw-r--r--benchmark/function/source_function.benchmark.cpp2
-rw-r--r--benchmark/parse/filter.benchmark.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/function/composite_function.benchmark.cpp b/benchmark/function/composite_function.benchmark.cpp
index 8064d548fa..c9e4f7f114 100644
--- a/benchmark/function/composite_function.benchmark.cpp
+++ b/benchmark/function/composite_function.benchmark.cpp
@@ -52,7 +52,7 @@ static void Evaluate_CompositeFunction(benchmark::State& state) {
while(state.KeepRunning()) {
float z = 24.0f * static_cast<float>(rand() % 100) / 100;
- function->asExpression().evaluate(z, StubGeometryTileFeature(PropertyMap { { "x", static_cast<int64_t>(rand() % 100) } }), -1.0f);
+ function->asExpression().evaluate(z, StubGeometryTileFeature(PropertyMap { { "x", static_cast<int64_t>(rand() % 100) } }), {}, -1.0f);
}
state.SetLabel(std::to_string(stopCount).c_str());
diff --git a/benchmark/function/source_function.benchmark.cpp b/benchmark/function/source_function.benchmark.cpp
index b75cc143d2..91014849a4 100644
--- a/benchmark/function/source_function.benchmark.cpp
+++ b/benchmark/function/source_function.benchmark.cpp
@@ -46,7 +46,7 @@ static void Evaluate_SourceFunction(benchmark::State& state) {
}
while(state.KeepRunning()) {
- function->asExpression().evaluate(StubGeometryTileFeature(PropertyMap { { "x", static_cast<int64_t>(rand() % 100) } }), -1.0f);
+ function->asExpression().evaluate(StubGeometryTileFeature(PropertyMap { { "x", static_cast<int64_t>(rand() % 100) } }), { }, -1.0f);
}
state.SetLabel(std::to_string(stopCount).c_str());
diff --git a/benchmark/parse/filter.benchmark.cpp b/benchmark/parse/filter.benchmark.cpp
index 1ae2b0f2bc..b2a9139ea3 100644
--- a/benchmark/parse/filter.benchmark.cpp
+++ b/benchmark/parse/filter.benchmark.cpp
@@ -23,7 +23,7 @@ static void Parse_Filter(benchmark::State& state) {
static void Parse_EvaluateFilter(benchmark::State& state) {
const style::Filter filter = parse(R"FILTER(["==", "foo", "bar"])FILTER");
const StubGeometryTileFeature feature = { {}, FeatureType::Unknown , {}, {{ "foo", std::string("bar") }} };
- const style::expression::EvaluationContext context = { &feature };
+ const style::expression::EvaluationContext context = { &feature, {} };
while (state.KeepRunning()) {
filter(context);