[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`.
This commit is contained in:
@@ -13,7 +13,7 @@ namespace mbgl {
|
||||
using namespace style;
|
||||
|
||||
RenderCustomLayer::RenderCustomLayer(Immutable<style::CustomLayer::Impl> _impl)
|
||||
: RenderLayer(LayerType::Custom, _impl), host(_impl->host) {
|
||||
: RenderLayer(std::move(_impl)), host(impl().host) {
|
||||
assert(BackendScope::exists());
|
||||
host->initialize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user