summaryrefslogtreecommitdiff
path: root/src/mbgl/style/source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 10:57:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-06-14 11:25:45 -0700
commit5bbcca832660f80c42e8bfdb5d1836ea8113bb19 (patch)
tree08f46011d920f7abd4c86e16f2040df2355cfdb1 /src/mbgl/style/source.hpp
parent9d3c4fbbb05d37802ebc15210b041392b4d48f15 (diff)
downloadqtlocation-mapboxgl-5bbcca832660f80c42e8bfdb5d1836ea8113bb19.tar.gz
[core] Add virtual Source::getTileSize()
Diffstat (limited to 'src/mbgl/style/source.hpp')
-rw-r--r--src/mbgl/style/source.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/source.hpp b/src/mbgl/style/source.hpp
index 99d634a887..575297e326 100644
--- a/src/mbgl/style/source.hpp
+++ b/src/mbgl/style/source.hpp
@@ -32,7 +32,7 @@ class SourceObserver;
class Source : public TileObserver, private util::noncopyable {
public:
- Source(SourceType, std::string id, uint16_t tileSize);
+ Source(SourceType, std::string id);
~Source() override;
bool loaded = false;
@@ -68,7 +68,6 @@ public:
const SourceType type;
const std::string id;
- uint16_t tileSize = util::tileSize;
bool enabled = false;
private:
@@ -77,6 +76,7 @@ private:
void onTileError(Tile&, std::exception_ptr) override;
void onNeedsRepaint() override;
+ virtual uint16_t getTileSize() const = 0;
virtual Range<uint8_t> getZoomRange() = 0;
virtual std::unique_ptr<Tile> createTile(const OverscaledTileID&, const UpdateParameters&) = 0;