summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLRasterStyleLayer_Private.h
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-12 17:22:54 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2018-11-19 22:31:20 +0200
commit8077055b1ad5bb7324b81c9b199176124240237b (patch)
tree715e92591a4187469614f726566eaeefe2757e15 /platform/darwin/src/MGLRasterStyleLayer_Private.h
parent8ac87ec5cb2374d212a31942ca19ce395704eb69 (diff)
downloadqtlocation-mapboxgl-8077055b1ad5bb7324b81c9b199176124240237b.tar.gz
[ios, macos] Layer manager for Darwin platforms
The newly introduced `MGLStyleLayerManager` is now responsible for creating both style layer objects and their obj C peers on Darwin.
Diffstat (limited to 'platform/darwin/src/MGLRasterStyleLayer_Private.h')
-rw-r--r--platform/darwin/src/MGLRasterStyleLayer_Private.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/platform/darwin/src/MGLRasterStyleLayer_Private.h b/platform/darwin/src/MGLRasterStyleLayer_Private.h
new file mode 100644
index 0000000000..1070751a61
--- /dev/null
+++ b/platform/darwin/src/MGLRasterStyleLayer_Private.h
@@ -0,0 +1,17 @@
+// This file is generated.
+// Edit platform/darwin/scripts/generate-style-code.js, then run `make darwin-style-code`.
+#pragma once
+
+#include "MGLStyleLayer_Private.h"
+
+#include <mbgl/style/layers/raster_layer.hpp>
+
+namespace mbgl {
+
+class RasterStyleLayerPeerFactory : public LayerPeerFactory, public mbgl::style::RasterLayerFactory {
+ // LayerPeerFactory overrides.
+ style::LayerFactory* getCoreLayerFactory() final { return this; }
+ virtual MGLStyleLayer* createPeer(style::Layer*) final;
+};
+
+} // namespace mbgl