[Tizen](Vector) Add a method to ignore rendered frames 94/221194/1 accepted/tizen/5.5/unified/20200102.110128 submit/tizen_5.5/20200102.004531
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 30 Dec 2019 05:13:47 +0000 (14:13 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 30 Dec 2019 05:13:47 +0000 (14:13 +0900)
Change-Id: I6f8fdcb4a913e3439b45c13def5f6570a82dda74

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 c7b0011..c9c81e7 100644 (file)
@@ -129,6 +129,11 @@ public:
   virtual bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const = 0;
 
   /**
+   * @brief Ignores rendered frames which are not shown yet.
+   */
+  virtual void IgnoreRenderedFrames() = 0;
+
+  /**
    * @brief Connect to this signal to be notified when the texture upload is completed.
    *
    * @return The signal to connect to.
index 9cd05ad..f85d13f 100755 (executable)
@@ -104,6 +104,11 @@ bool VectorAnimationRenderer::GetMarkerInfo( const std::string& marker, uint32_t
   return GetImplementation( *this ).GetMarkerInfo( marker, startFrame, endFrame );
 }
 
+void VectorAnimationRenderer::IgnoreRenderedFrames()
+{
+  GetImplementation( *this ).IgnoreRenderedFrames();
+}
+
 VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
 {
   return GetImplementation( *this ).UploadCompletedSignal();
index 0e2f14a..5218016 100755 (executable)
@@ -156,6 +156,11 @@ public:
    */
   bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
 
+  /**
+   * @brief Ignores rendered frames which are not shown yet.
+   */
+  void IgnoreRenderedFrames();
+
 public: // Signals
 
   /**
index 1b76ff3..679a646 100644 (file)
@@ -110,6 +110,11 @@ bool VectorAnimationRenderer::GetMarkerInfo( const std::string& marker, uint32_t
   return mPlugin.GetMarkerInfo( marker, startFrame, endFrame );
 }
 
+void VectorAnimationRenderer::IgnoreRenderedFrames()
+{
+  mPlugin.IgnoreRenderedFrames();
+}
+
 Dali::VectorAnimationRenderer::UploadCompletedSignalType& VectorAnimationRenderer::UploadCompletedSignal()
 {
   return mPlugin.UploadCompletedSignal();
index b635683..c27c4a2 100755 (executable)
@@ -102,6 +102,11 @@ public:
   bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRenderer::IgnoreRenderedFrames()
+   */
+  void IgnoreRenderedFrames();
+
+  /**
    * @copydoc Dali::VectorAnimationRenderer::UploadCompletedSignal()
    */
   Dali::VectorAnimationRenderer::UploadCompletedSignalType& UploadCompletedSignal();
index 6eae9bf..a1f6b82 100644 (file)
@@ -186,6 +186,14 @@ bool VectorAnimationRendererPluginProxy::GetMarkerInfo( const std::string& marke
   return false;
 }
 
+void VectorAnimationRendererPluginProxy::IgnoreRenderedFrames()
+{
+  if( mPlugin )
+  {
+    mPlugin->IgnoreRenderedFrames();
+  }
+}
+
 VectorAnimationRendererPlugin::UploadCompletedSignalType& VectorAnimationRendererPluginProxy::UploadCompletedSignal()
 {
   if( mPlugin )
index 1480aca..b09c8b9 100644 (file)
@@ -98,6 +98,11 @@ public:
   bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const;
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::IgnoreRenderedFrames()
+   */
+  void IgnoreRenderedFrames();
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal()
    */
   VectorAnimationRendererPlugin::UploadCompletedSignalType& UploadCompletedSignal();