(Vector) Add RenderStopped method 62/284862/3
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 29 Nov 2022 10:51:48 +0000 (19:51 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 8 Dec 2022 01:11:37 +0000 (10:11 +0900)
Change-Id: I6f708b7fdb9c13488f9a91ab51b5748dbb17793c

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 6c96e76..3b87f4a 100644 (file)
@@ -89,6 +89,11 @@ public:
   virtual bool Render(uint32_t frameNumber) = 0;
 
   /**
+   * @brief Notify the Renderer that rendering is stopped.
+   */
+  virtual void RenderStopped() = 0;
+
+  /**
    * @brief Gets the total number of frames of the file.
    *
    * @return The total number of frames
index 5663e81..33ea624 100644 (file)
@@ -78,6 +78,11 @@ bool VectorAnimationRenderer::Render(uint32_t frameNumber)
   return GetImplementation(*this).Render(frameNumber);
 }
 
+void VectorAnimationRenderer::RenderStopped()
+{
+  GetImplementation(*this).RenderStopped();
+}
+
 uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
 {
   return GetImplementation(*this).GetTotalFrameNumber();
index 8f9c4af..1636c1f 100644 (file)
@@ -133,6 +133,11 @@ public:
   bool Render(uint32_t frameNumber);
 
   /**
+   * @brief Notify the Renderer that rendering is stopped.
+   */
+  void RenderStopped();
+
+  /**
    * @brief Gets the total number of frames of the file
    *
    * @return The total number of frames
index 3ff18f2..a4af959 100644 (file)
@@ -81,6 +81,11 @@ bool VectorAnimationRenderer::Render(uint32_t frameNumber)
   return mPlugin.Render(frameNumber);
 }
 
+void VectorAnimationRenderer::RenderStopped()
+{
+  mPlugin.RenderStopped();
+}
+
 uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
 {
   return mPlugin.GetTotalFrameNumber();
index b9522cb..94d9cdd 100644 (file)
@@ -73,6 +73,11 @@ public:
   bool Render(uint32_t frameNumber);
 
   /**
+   * @copydoc Dali::VectorAnimationRenderer::RenderStopped()
+   */
+  void RenderStopped();
+
+  /**
    * @copydoc Dali::VectorAnimationRenderer::GetTotalFrameNumber()
    */
   uint32_t GetTotalFrameNumber() const;
index 000c319..011c9cd 100644 (file)
@@ -139,6 +139,14 @@ bool VectorAnimationRendererPluginProxy::Render(uint32_t frameNumber)
   return false;
 }
 
+void VectorAnimationRendererPluginProxy::RenderStopped()
+{
+  if(mPlugin)
+  {
+    mPlugin->RenderStopped();
+  }
+}
+
 uint32_t VectorAnimationRendererPluginProxy::GetTotalFrameNumber() const
 {
   if(mPlugin)
index 6537256..2be98ea 100644 (file)
@@ -69,6 +69,11 @@ public:
   bool Render(uint32_t frameNumber);
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::RenderStopped()
+   */
+  void RenderStopped();
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::GetTotalFrameNumber()
    */
   uint32_t GetTotalFrameNumber() const;