[core] Immutable Impls
This commit is contained in:
@@ -9,11 +9,15 @@ namespace mbgl {
|
||||
|
||||
using namespace style;
|
||||
|
||||
RenderAnnotationSource::RenderAnnotationSource(const AnnotationSource::Impl& impl_)
|
||||
RenderAnnotationSource::RenderAnnotationSource(Immutable<AnnotationSource::Impl> impl_)
|
||||
: RenderSource(impl_) {
|
||||
tilePyramid.setObserver(this);
|
||||
}
|
||||
|
||||
const AnnotationSource::Impl& RenderAnnotationSource::impl() const {
|
||||
return static_cast<const AnnotationSource::Impl&>(*baseImpl);
|
||||
}
|
||||
|
||||
bool RenderAnnotationSource::isLoaded() const {
|
||||
return tilePyramid.isLoaded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user