[core] remove SourceInfo dependency from *TileData

This commit is contained in:
Konstantin Käfer
2016-01-05 15:59:10 +01:00
committed by John Firebaugh
parent aac6b00dd0
commit 1ff317c1cd
9 changed files with 43 additions and 51 deletions

View File

@@ -6,7 +6,6 @@
namespace mbgl {
class SourceInfo;
class FileRequest;
class StyleLayer;
class TexturePool;
@@ -14,12 +13,12 @@ class WorkRequest;
class RasterTileData : public TileData {
public:
RasterTileData(const TileID&, TexturePool&, const SourceInfo&, Worker&);
RasterTileData(const TileID&, TexturePool&, Worker&);
~RasterTileData();
using Callback = std::function<void()>;
void request(float pixelRatio,
void request(const std::string& url,
const Callback& callback);
void cancel() override;
@@ -28,7 +27,6 @@ public:
private:
TexturePool& texturePool;
const SourceInfo& source;
Worker& worker;
std::unique_ptr<FileRequest> req;