summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_source.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-03 12:09:28 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-04 16:56:43 +0300
commit8b78398190a5a7957d507c33b41af841e112a91b (patch)
treeef549563154e35e6fdcd980edc0cd557a5c58cc0 /src/mbgl/renderer/render_source.hpp
parent115512153064276d23bb865d1947e669eb022b50 (diff)
downloadqtlocation-mapboxgl-8b78398190a5a7957d507c33b41af841e112a91b.tar.gz
[core] Remove down-casting of render sources
Diffstat (limited to 'src/mbgl/renderer/render_source.hpp')
-rw-r--r--src/mbgl/renderer/render_source.hpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mbgl/renderer/render_source.hpp b/src/mbgl/renderer/render_source.hpp
index 2603aa1273..d9af901664 100644
--- a/src/mbgl/renderer/render_source.hpp
+++ b/src/mbgl/renderer/render_source.hpp
@@ -47,21 +47,6 @@ public:
static std::unique_ptr<RenderSource> create(Immutable<style::Source::Impl>);
virtual ~RenderSource();
- // Check whether this source is of the given subtype.
- template <class T>
- bool is() const;
-
- // Dynamically cast this source to the given subtype.
- template <class T>
- T* as() {
- return is<T>() ? reinterpret_cast<T*>(this) : nullptr;
- }
-
- template <class T>
- const T* as() const {
- return is<T>() ? reinterpret_cast<const T*>(this) : nullptr;
- }
-
bool isEnabled() const;
virtual bool isLoaded() const = 0;
@@ -103,6 +88,8 @@ public:
virtual void dumpDebugLogs() const = 0;
+ virtual uint8_t getMaxZoom() const;
+
void setObserver(RenderSourceObserver*);
Immutable<style::Source::Impl> baseImpl;