diff options
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer_Private.h')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer_Private.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLStyleLayer_Private.h b/platform/darwin/src/MGLStyleLayer_Private.h index ea43c680e0..0d6e4094bd 100644 --- a/platform/darwin/src/MGLStyleLayer_Private.h +++ b/platform/darwin/src/MGLStyleLayer_Private.h @@ -82,4 +82,21 @@ struct LayerWrapper { @end +namespace mbgl { + +class LayerPeerFactory { +public: + virtual ~LayerPeerFactory() = default; + /** + Get the corresponding core layer factory. + */ + virtual style::LayerFactory* getCoreLayerFactory() = 0; + /** + Creates an MGLStyleLayer instance with a raw pointer to the backing store. + */ + virtual MGLStyleLayer* createPeer(style::Layer*) = 0; +}; + +} // namespace mbgl + NS_ASSUME_NONNULL_END |