summaryrefslogtreecommitdiff
path: root/src/mbgl/map/sprite.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/map/sprite.hpp')
-rw-r--r--src/mbgl/map/sprite.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mbgl/map/sprite.hpp b/src/mbgl/map/sprite.hpp
index d4b54ba1b5..cb0c274dee 100644
--- a/src/mbgl/map/sprite.hpp
+++ b/src/mbgl/map/sprite.hpp
@@ -14,7 +14,7 @@
namespace mbgl {
-class FileSource;
+class Environment;
class SpritePosition {
public:
@@ -34,11 +34,12 @@ public:
class Sprite : public std::enable_shared_from_this<Sprite>, private util::noncopyable {
private:
struct Key {};
- void load(FileSource& fileSource);
+ void load(Environment &env);
public:
Sprite(const Key &, const std::string& base_url, float pixelRatio);
- static util::ptr<Sprite> Create(const std::string& base_url, float pixelRatio, FileSource& fileSource);
+ static util::ptr<Sprite>
+ Create(const std::string &base_url, float pixelRatio, Environment &env);
const SpritePosition &getSpritePosition(const std::string& name) const;