summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/style.hpp')
-rw-r--r--src/mbgl/style/style.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mbgl/style/style.hpp b/src/mbgl/style/style.hpp
index 7bd98a7552..82c048b195 100644
--- a/src/mbgl/style/style.hpp
+++ b/src/mbgl/style/style.hpp
@@ -3,7 +3,7 @@
#include <mbgl/style/zoom_history.hpp>
-#include <mbgl/map/source.hpp>
+#include <mbgl/source/source.hpp>
#include <mbgl/text/glyph_store.hpp>
#include <mbgl/sprite/sprite_store.hpp>
@@ -19,6 +19,7 @@
namespace mbgl {
class MapData;
+class FileSource;
class GlyphAtlas;
class GlyphStore;
class SpriteStore;
@@ -26,11 +27,11 @@ class SpriteAtlas;
class LineAtlas;
class StyleLayer;
class TransformState;
-class TexturePool;
-
class Tile;
class Bucket;
+namespace gl { class TexturePool; }
+
struct RenderItem {
inline RenderItem(const StyleLayer& layer_,
const Tile* tile_ = nullptr,
@@ -54,7 +55,7 @@ class Style : public GlyphStore::Observer,
public Source::Observer,
public util::noncopyable {
public:
- Style(MapData&);
+ Style(MapData&, FileSource&);
~Style();
class Observer : public GlyphStore::Observer,
@@ -79,7 +80,7 @@ public:
// Fetch the tiles needed by the current viewport and emit a signal when
// a tile is ready so observers can render the tile.
- void update(const TransformState&, TexturePool&);
+ void update(const TransformState&, gl::TexturePool&);
void cascade();
void recalculate(float z);
@@ -107,6 +108,7 @@ public:
void dumpDebugLogs() const;
MapData& data;
+ FileSource& fileSource;
std::unique_ptr<GlyphStore> glyphStore;
std::unique_ptr<GlyphAtlas> glyphAtlas;
std::unique_ptr<SpriteStore> spriteStore;