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
return *this;
}
+void VectorAnimationRenderer::Finalize()
+{
+ GetImplementation( *this ).Finalize();
+}
+
void VectorAnimationRenderer::SetRenderer( Renderer renderer )
{
GetImplementation( *this ).SetRenderer( renderer );
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
mPlugin.Initialize( url );
}
+void VectorAnimationRenderer::Finalize()
+{
+ mPlugin.Finalize();
+}
+
void VectorAnimationRenderer::SetRenderer( Dali::Renderer renderer )
{
mPlugin.SetRenderer( renderer );
void Initialize( const std::string& url );
/**
+ * @copydoc Dali::VectorAnimationRenderer::Finalize()
+ */
+ void Finalize();
+
+ /**
* @copydoc Dali::VectorAnimationRenderer::SetRenderer()
*/
void SetRenderer( Dali::Renderer renderer );
return false;
}
+void VectorAnimationRendererPluginProxy::Finalize()
+{
+ if( mPlugin )
+ {
+ mPlugin->Finalize();
+ }
+}
+
void VectorAnimationRendererPluginProxy::SetRenderer( Dali::Renderer renderer )
{
if( mPlugin )
bool Initialize( const std::string& url );
/**
+ * @copydoc Dali::VectorAnimationRendererPlugin::Finalize()
+ */
+ void Finalize();
+
+ /**
* @copydoc Dali::VectorAnimationRendererPlugin::SetRenderer()
*/
void SetRenderer( Dali::Renderer renderer );