summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-21 17:22:51 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-21 18:24:49 -0700
commit3459b83736f0e4eedfb95a1394d9e4ee1523b917 (patch)
tree2e8cc0abacdaad54b394af1291e846c7483acfa2 /benchmark
parent220fc7adc952c97db3fb8ce7edb855db9469ef5a (diff)
downloadqtlocation-mapboxgl-3459b83736f0e4eedfb95a1394d9e4ee1523b917.tar.gz
[core, node] Node bindings for setFilter
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/parse/filter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmark/parse/filter.cpp b/benchmark/parse/filter.cpp
index 8beff3b308..4269f8e169 100644
--- a/benchmark/parse/filter.cpp
+++ b/benchmark/parse/filter.cpp
@@ -2,7 +2,8 @@
#include <mbgl/style/filter.hpp>
#include <mbgl/style/filter_evaluator.hpp>
-#include <mbgl/style/parser.hpp>
+#include <mbgl/style/rapidjson_conversion.hpp>
+#include <mbgl/style/conversion.hpp>
#include <mbgl/tile/geometry_tile_data.hpp>
#include <rapidjson/document.h>
@@ -16,7 +17,7 @@ typedef std::multimap<std::string, Value> Properties;
style::Filter parse(const char* expression) {
rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator> doc;
doc.Parse<0>(expression);
- return style::parseFilter(doc);
+ return style::conversion::convertFilter(doc).get<style::Filter>();
}
static void Parse_Filter(benchmark::State& state) {