summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/render_source.hpp
diff options
context:
space:
mode:
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;