[benchmark] add render benchmarks

This commit is contained in:
Ivo van Dongen
2017-07-07 16:45:33 +03:00
committed by Ivo van Dongen
parent 35b90618b7
commit ba32831260
4 changed files with 81 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ public:
NetworkStatus::Set(NetworkStatus::Status::Offline);
fileSource.setAccessToken("foobar");
map.getStyle().loadJSON(util::read_file("benchmark/fixtures/api/query_style.json"));
map.getStyle().loadJSON(util::read_file("benchmark/fixtures/api/style.json"));
map.setLatLngZoom({ 40.726989, -73.992857 }, 15); // Manhattan
map.getStyle().addImage(std::make_unique<style::Image>("test-icon",
decodeImage(util::read_file("benchmark/fixtures/api/default_marker.png")), 1.0));