[Tizen](Vector) Add a method to ignore rendered frames 34/221234/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 30 Dec 2019 08:21:08 +0000 (17:21 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 30 Dec 2019 08:21:08 +0000 (17:21 +0900)
Change-Id: I9302f71059a9a4734758fcd2c07b43d7c011ee3a

dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.cpp
dali-extension/vector-animation-renderer/tizen-vector-animation-renderer.h

index 9cbdaf0..d459705 100755 (executable)
@@ -314,6 +314,16 @@ bool TizenVectorAnimationRenderer::GetMarkerInfo( const std::string& marker, uin
   return false;
 }
 
+void TizenVectorAnimationRenderer::IgnoreRenderedFrames()
+{
+  Dali::Mutex::ScopedLock lock( mMutex );
+
+  if( mTargetSurface )
+  {
+    mTargetSurface->IgnoreSourceImages();
+  }
+}
+
 VectorAnimationRendererPlugin::UploadCompletedSignalType& TizenVectorAnimationRenderer::UploadCompletedSignal()
 {
   return mUploadCompletedSignal;
index e3283a2..970de2e 100755 (executable)
@@ -105,6 +105,11 @@ public:
   bool GetMarkerInfo( const std::string& marker, uint32_t& startFrame, uint32_t& endFrame ) const override;
 
   /**
+   * @copydoc Dali::VectorAnimationRendererPlugin::IgnoreRenderedFrames()
+   */
+  void IgnoreRenderedFrames() override;
+
+  /**
    * @copydoc Dali::VectorAnimationRendererPlugin::UploadCompletedSignal()
    */
   UploadCompletedSignalType& UploadCompletedSignal() override;