diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-01-23 14:47:17 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-01-25 15:11:18 +0200 |
commit | 2f86467586706d254fcbcb1c88657992214aefcd (patch) | |
tree | 97c34a7c1589ba32cc981b47792983d057c3b996 /test/fixtures/util.cpp | |
parent | cc47da5a15650c3f8ede9f7e253e4099dc61673f (diff) | |
download | qtlocation-mapboxgl-2f86467586706d254fcbcb1c88657992214aefcd.tar.gz |
Cleanup std::chrono usage
Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
Diffstat (limited to 'test/fixtures/util.cpp')
-rw-r--r-- | test/fixtures/util.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fixtures/util.cpp b/test/fixtures/util.cpp index c2a5d83637..fcb6abed4e 100644 --- a/test/fixtures/util.cpp +++ b/test/fixtures/util.cpp @@ -4,6 +4,7 @@ #include <mbgl/platform/log.hpp> #include <mbgl/util/image.hpp> #include <mbgl/util/io.hpp> +#include <mbgl/util/chrono.hpp> #include <mapbox/pixelmatch.hpp> @@ -105,7 +106,7 @@ uint64_t crc64(const PremultipliedImage &image) { return crc64(reinterpret_cast<const char*>(image.data.get()), image.size()); } -PremultipliedImage render(Map& map, std::chrono::milliseconds timeout) { +PremultipliedImage render(Map& map, Milliseconds timeout) { std::promise<PremultipliedImage> promise; map.renderStill([&](std::exception_ptr, PremultipliedImage&& image) { promise.set_value(std::move(image)); |