From 20ca1a041868955524b3f2475ebc83760398ca82 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Fri, 23 Nov 2018 16:25:24 +0200 Subject: [core] Cleanup Transform, use {jump,ease}To() instead --- benchmark/util/tilecover.benchmark.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'benchmark') diff --git a/benchmark/util/tilecover.benchmark.cpp b/benchmark/util/tilecover.benchmark.cpp index 186de6f216..03c9149d9e 100644 --- a/benchmark/util/tilecover.benchmark.cpp +++ b/benchmark/util/tilecover.benchmark.cpp @@ -22,11 +22,8 @@ static void TileCoverPitchedViewport(benchmark::State& state) { Transform transform; transform.resize({ 512, 512 }); // slightly offset center so that tile order is better defined - transform.setLatLng({ 0.1, -0.1 }); - transform.setZoom(8); - transform.setAngle(5.0); - transform.setPitch(40.0 * M_PI / 180.0); - + transform.jumpTo(CameraOptions().withCenter(LatLng { 0.1, -0.1 }).withZoom(8.0).withAngle(5.0).withPitch(40.0)); + std::size_t length = 0; while (state.KeepRunning()) { auto tiles = util::tileCover(transform.getState(), 8); -- cgit v1.2.1