diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-11 01:54:05 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-11 14:34:46 +0200 |
commit | 64e2bcdf4395a1c65cd9faca81f98c4c5d974bd6 (patch) | |
tree | 672f0cb62600314c76c26478d44ebf6d56c96577 /src/mbgl/map | |
parent | 146e0ac8ed6a287b77505ffdefa9fe77da93eee1 (diff) | |
download | qtlocation-mapboxgl-64e2bcdf4395a1c65cd9faca81f98c4c5d974bd6.tar.gz |
[core] Loading images to style optimization
This change enables attaching images to the style with batches and
avoids massive re-allocations. Thus, it improves UI performance
especially at start-up time.
Diffstat (limited to 'src/mbgl/map')
-rw-r--r-- | src/mbgl/map/map_impl.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mbgl/map/map_impl.cpp b/src/mbgl/map/map_impl.cpp index bc2a37fe07..e4eb2e3e8c 100644 --- a/src/mbgl/map/map_impl.cpp +++ b/src/mbgl/map/map_impl.cpp @@ -170,7 +170,6 @@ void Map::Impl::jumpTo(const CameraOptions& camera) { } void Map::Impl::onStyleImageMissing(const std::string& id, std::function<void()> done) { - if (style->getImage(id) == nullptr) { observer.onStyleImageMissing(id); } |