[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:
Mikhail Pozdnyakov
2018-11-22 15:37:09 +02:00
parent cca37e765b
commit 361982fef8
107 changed files with 544 additions and 537 deletions

View File

@@ -17,7 +17,7 @@ namespace mbgl {
using namespace style;
RenderFillLayer::RenderFillLayer(Immutable<style::FillLayer::Impl> _impl)
: RenderLayer(style::LayerType::Fill, _impl),
: RenderLayer(std::move(_impl)),
unevaluated(impl().paint.untransitioned()) {
}