diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-04-20 12:28:35 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-04-26 11:46:40 +0200 |
commit | ed2ccda0e911b3305bb0f587c00c01bad3bd31d2 (patch) | |
tree | bf8c3cd633ffcb3e2f227a95b450a8a4b41639c1 /src/mbgl/sprite/sprite_atlas_worker.hpp | |
parent | 03f26cb508d203a69b93f7461a4bd9d8ea66ed16 (diff) | |
download | qtlocation-mapboxgl-ed2ccda0e911b3305bb0f587c00c01bad3bd31d2.tar.gz |
[core] Move Sprite parsing to thread pool
Diffstat (limited to 'src/mbgl/sprite/sprite_atlas_worker.hpp')
-rw-r--r-- | src/mbgl/sprite/sprite_atlas_worker.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mbgl/sprite/sprite_atlas_worker.hpp b/src/mbgl/sprite/sprite_atlas_worker.hpp new file mode 100644 index 0000000000..70ca0d52e5 --- /dev/null +++ b/src/mbgl/sprite/sprite_atlas_worker.hpp @@ -0,0 +1,23 @@ +#pragma once + +#include <mbgl/actor/actor_ref.hpp> +#include <mbgl/sprite/sprite_parser.hpp> + +#include <memory> +#include <string> + +namespace mbgl { + +class SpriteAtlas; + +class SpriteAtlasWorker { +public: + SpriteAtlasWorker(ActorRef<SpriteAtlasWorker>, ActorRef<SpriteAtlas>); + + void parse(std::shared_ptr<const std::string> image, std::shared_ptr<const std::string> json); + +private: + ActorRef<SpriteAtlas> parent; +}; + +} // namespace mbgl |