(Vector) Add Finalize method 00/218400/2
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 22 Nov 2019 03:21:15 +0000 (12:21 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 25 Nov 2019 07:20:23 +0000 (07:20 +0000)
Change-Id: I3abffd7d79704cb07bd91e0d6ceacd2c3cc9d6e4

dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h
dali/devel-api/adaptor-framework/vector-animation-renderer.cpp
dali/devel-api/adaptor-framework/vector-animation-renderer.h
dali/internal/vector-animation/common/vector-animation-renderer-impl.cpp
dali/internal/vector-animation/common/vector-animation-renderer-impl.h
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.cpp
dali/internal/vector-animation/common/vector-animation-renderer-plugin-proxy.h

index a640f3c..1a31f23 100644 (file)
@@ -57,6 +57,11 @@ public:
   virtual bool Initialize( const std::string& url ) = 0;
 
   /**
+   * @brief Finalizes the renderer. It will be called in the main thread.
+   */
+  virtual void Finalize() = 0;
+
+  /**
    * @brief Sets the renderer used to display the result image.
    *
    * @param[in] renderer The renderer used to display the result image
index f55d839..bf61154 100755 (executable)
@@ -59,6 +59,11 @@ VectorAnimationRenderer& VectorAnimationRenderer::operator=( const VectorAnimati
   return *this;
 }
 
+void VectorAnimationRenderer::Finalize()
+{
+  GetImplementation( *this ).Finalize();
+}
+
 void VectorAnimationRenderer::SetRenderer( Renderer renderer )
 {
   GetImplementation( *this ).SetRenderer( renderer );
index 5db1122..af01253 100755 (executable)
@@ -85,6 +85,11 @@ public:
   VectorAnimationRenderer& operator=( const VectorAnimationRenderer& rhs );
 
   /**
+   * @brief Finalizes the renderer.
+   */
+  void Finalize();
+
+  /**
    * @brief Sets the renderer used to display the result image.
    *
    * @param[in] renderer The renderer used to display the result image
index b1e3a17..a677418 100644 (file)
@@ -65,6 +65,11 @@ void VectorAnimationRenderer::Initialize( const std::string& url )
   mPlugin.Initialize( url );
 }
 
+void VectorAnimationRenderer::Finalize()
+{
+  mPlugin.Finalize();
+}
+
 void VectorAnimationRenderer::SetRenderer( Dali::Renderer renderer )
 {
   mPlugin.SetRenderer( renderer );
index 5ede97e..9d9aee5 100755 (executable)
@@ -57,6 +57,11 @@ public:
   void Initialize( const std::string& url );
 
   /**
+   * @copydoc Dali::VectorAnimationRenderer::Finalize()
+   */
+  void Finalize();
+
+  /**
    * @copydoc Dali::VectorAnimationRenderer::SetRenderer()
    */
   void SetRenderer( Dali::Renderer renderer );
index 009312b..e171c8e 100644 (file)
@@ -110,6 +110,14 @@ bool VectorAnimationRendererPluginProxy::Initialize( const std::string& url )
   return false;
 }
 
+void VectorAnimationRendererPluginProxy::Finalize()
+{
+  if( mPlugin )
+  {
+    mPlugin->Finalize();
+  }
+}
+
 void VectorAnimationRendererPluginProxy::SetRenderer( Dali::Renderer renderer )
 {
   if( mPlugin )
index 17ba06b..ed1e6d0 100644 (file)
@@ -53,6 +53,11 @@ public:
   bool Initialize( const std::string& url );
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::Finalize()
+   */
+  void Finalize();
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::SetRenderer()
    */
   void SetRenderer( Dali::Renderer renderer );