/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
BorderVisualPtr borderVisualPtr( new BorderVisual( factoryCache ) );
borderVisualPtr->SetProperties( properties );
+ borderVisualPtr->Initialize();
return borderVisualPtr;
}
void BorderVisual::DoSetOnScene( Actor& actor )
{
- InitializeRenderer();
-
mBorderColorIndex = mImpl->mRenderer.RegisterProperty( Toolkit::BorderVisual::Property::COLOR, COLOR_NAME, mBorderColor );
if( mBorderColor.a < 1.f || mAntiAliasing )
{
}
}
-void BorderVisual::InitializeRenderer()
+void BorderVisual::OnInitialize()
{
Geometry geometry = mFactoryCache.GetGeometry( VisualFactoryCache::BORDER_GEOMETRY );
if( !geometry )