Create Renderer when the Visual is created
[platform/core/uifw/dali-toolkit.git] / automated-tests / src / dali-toolkit-internal / dali-toolkit-test-utils / dummy-visual.cpp
index c1d0585..1d8d611 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 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.
@@ -33,7 +33,7 @@ DummyVisualPtr DummyVisual::New( const Property::Map& properties )
   VisualFactoryCache* factoryCache = new VisualFactoryCache(false);
 
   DummyVisualPtr dummyVisualPtr( new DummyVisual( *factoryCache ) );
-
+  dummyVisualPtr->Initialize();
   return dummyVisualPtr;
 }
 
@@ -43,6 +43,11 @@ DummyVisual::DummyVisual( VisualFactoryCache& factoryCache )
 {
 }
 
+void DummyVisual::OnInitialize()
+{
+  // Implement if required
+}
+
 void DummyVisual::DoCreatePropertyMap( Property::Map& map ) const
 {
   // Implement if required