[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:
@@ -95,7 +95,7 @@ TEST(GLContextMode, Shared) {
|
||||
|
||||
// Set transparent background layer.
|
||||
auto layer = map.getStyle().getLayer("background");
|
||||
ASSERT_EQ(LayerType::Background, layer->getType());
|
||||
ASSERT_STREQ("background", layer->getTypeInfo()->type);
|
||||
static_cast<BackgroundLayer*>(layer)->setBackgroundColor( { { 1.0f, 0.0f, 0.0f, 0.5f } } );
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user