From 8077055b1ad5bb7324b81c9b199176124240237b Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Mon, 12 Nov 2018 17:22:54 +0200 Subject: [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. --- platform/darwin/src/MGLBackgroundStyleLayer_Private.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 platform/darwin/src/MGLBackgroundStyleLayer_Private.h (limited to 'platform/darwin/src/MGLBackgroundStyleLayer_Private.h') diff --git a/platform/darwin/src/MGLBackgroundStyleLayer_Private.h b/platform/darwin/src/MGLBackgroundStyleLayer_Private.h new file mode 100644 index 0000000000..07021669dc --- /dev/null +++ b/platform/darwin/src/MGLBackgroundStyleLayer_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 + +namespace mbgl { + +class BackgroundStyleLayerPeerFactory : public LayerPeerFactory, public mbgl::style::BackgroundLayerFactory { + // LayerPeerFactory overrides. + style::LayerFactory* getCoreLayerFactory() final { return this; } + virtual MGLStyleLayer* createPeer(style::Layer*) final; +}; + +} // namespace mbgl -- cgit v1.2.1