From 361982fef83a145769da5c04d1c19731df89921c Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Thu, 22 Nov 2018 15:37:09 +0200 Subject: [core][Android][Darwin] LayerManager creates RenderLayer instances `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`. --- src/mbgl/style/layers/custom_layer_impl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mbgl/style/layers/custom_layer_impl.hpp') diff --git a/src/mbgl/style/layers/custom_layer_impl.hpp b/src/mbgl/style/layers/custom_layer_impl.hpp index 6c7a9078a5..1ebf1b53f1 100644 --- a/src/mbgl/style/layers/custom_layer_impl.hpp +++ b/src/mbgl/style/layers/custom_layer_impl.hpp @@ -18,9 +18,10 @@ public: bool hasLayoutDifference(const Layer::Impl&) const override; void stringifyLayout(rapidjson::Writer&) const override; - const LayerTypeInfo* getTypeInfo() const noexcept final; std::shared_ptr host; + + DECLARE_LAYER_TYPE_INFO; }; } // namespace style -- cgit v1.2.1