`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`.
24 lines
568 B
C++
24 lines
568 B
C++
#pragma once
|
|
|
|
#include <mbgl/style/layer_impl.hpp>
|
|
#include <mbgl/style/layers/background_layer.hpp>
|
|
#include <mbgl/style/layers/background_layer_properties.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
|
|
class BackgroundLayer::Impl : public Layer::Impl {
|
|
public:
|
|
using Layer::Impl::Impl;
|
|
|
|
bool hasLayoutDifference(const Layer::Impl&) const override;
|
|
void stringifyLayout(rapidjson::Writer<rapidjson::StringBuffer>&) const override;
|
|
|
|
BackgroundPaintProperties::Transitionable paint;
|
|
|
|
DECLARE_LAYER_TYPE_INFO;
|
|
};
|
|
|
|
} // namespace style
|
|
} // namespace mbgl
|