diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-11-05 13:12:36 -0800 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2018-11-05 13:12:36 -0800 |
commit | 3006f1b1f109bc777b937562cdfaf6c0454012ce (patch) | |
tree | e5ea88ec6523ce864126c05856ee77a0872f834a | |
parent | 4f8545afa35f140541a755f64bf847cb7ee001aa (diff) |
Fix benchmark builds
-rw-r--r-- | benchmark/function/composite_function.benchmark.cpp | 2 | ||||
-rw-r--r-- | benchmark/function/source_function.benchmark.cpp | 2 | ||||
-rw-r--r-- | benchmark/parse/filter.benchmark.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/function/composite_function.benchmark.cpp b/benchmark/function/composite_function.benchmark.cpp index 8064d548f..c9e4f7f11 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 b75cc143d..91014849a 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 1ae2b0f2b..b2a9139ea 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); |