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/sprite/sprite_parser.hpp | |
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/sprite/sprite_parser.hpp')
-rw-r--r-- | src/mbgl/sprite/sprite_parser.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/sprite/sprite_parser.hpp b/src/mbgl/sprite/sprite_parser.hpp index 9656bcbf2a..f2e7358ac2 100644 --- a/src/mbgl/sprite/sprite_parser.hpp +++ b/src/mbgl/sprite/sprite_parser.hpp @@ -20,6 +20,6 @@ std::unique_ptr<style::Image> createStyleImage(const std::string& id, optional<style::ImageContent> content = nullopt); // Parses an image and an associated JSON file and returns the sprite objects. -std::vector<std::unique_ptr<style::Image>> parseSprite(const std::string& image, const std::string& json); +std::vector<Immutable<style::Image::Impl>> parseSprite(const std::string& image, const std::string& json); } // namespace mbgl |