`LayerManager` is now responsible for `RenderLayer` instances creation, so that there is a single entry point for creating of objects, which correspond to a certain layer type. The `LayerType type` field is dropped from `Layer::Impl`.
18 lines
505 B
C++
18 lines
505 B
C++
// 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/fill_layer.hpp>
|
|
|
|
namespace mbgl {
|
|
|
|
class FillStyleLayerPeerFactory : public LayerPeerFactory, public mbgl::FillLayerFactory {
|
|
// LayerPeerFactory overrides.
|
|
LayerFactory* getCoreLayerFactory() final { return this; }
|
|
virtual MGLStyleLayer* createPeer(style::Layer*) final;
|
|
};
|
|
|
|
} // namespace mbgl
|