Revert "[Tizen](Vector) Fix crash issues" 01/221001/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 26 Dec 2019 07:44:38 +0000 (16:44 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 26 Dec 2019 08:03:59 +0000 (17:03 +0900)
This reverts commit e396a42c0185be1331eddb5569b84968fb1510f3.

Change-Id: I3766e5d851fa972783f429e98eae462c84109b56

dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.cpp
dali-toolkit/internal/visuals/animated-vector-image/vector-animation-task.cpp

index 45c0af2..8ea78b9 100644 (file)
@@ -118,8 +118,7 @@ AnimatedVectorImageVisual::AnimatedVectorImageVisual( VisualFactoryCache& factor
 
 AnimatedVectorImageVisual::~AnimatedVectorImageVisual()
 {
-  // Finalize animation task and disconnect the signal in the main thread
-  mVectorAnimationTask->UploadCompletedSignal().Disconnect( this, &AnimatedVectorImageVisual::OnUploadCompleted );
+  // Finalize animation task in the main thread
   mVectorAnimationTask->Finalize();
 }
 
index 63d1c88..f8598ab 100644 (file)
@@ -96,8 +96,6 @@ VectorAnimationTask::~VectorAnimationTask()
 
 void VectorAnimationTask::Finalize()
 {
-  ConditionalWait::ScopedLock lock( mConditionalWait );
-
   // Release some objects in the main thread
   if( mAnimationFinishedTrigger )
   {
@@ -420,7 +418,7 @@ void VectorAnimationTask::Initialize()
 
 bool VectorAnimationTask::Rasterize()
 {
-  bool stopped = false, needAnimationFinishedTrigger, resourceReady;
+  bool stopped = false, needAnimationFinishedTrigger;
   uint32_t currentFrame, startFrame, endFrame;
   int32_t loopCount, currentLoopCount;
   PlayState playState;
@@ -441,7 +439,6 @@ bool VectorAnimationTask::Rasterize()
     currentLoopCount = mCurrentLoop;
     needAnimationFinishedTrigger = mNeedAnimationFinishedTrigger;
     playState = mPlayState;
-    resourceReady = mResourceReady;
 
     mResourceReady = true;
     mCurrentFrameUpdated = false;
@@ -516,19 +513,11 @@ bool VectorAnimationTask::Rasterize()
     {
       DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorAnimationTask::Rasterize: Rendering failed. Try again later.[%d] [%p]\n", currentFrame, this );
       mUpdateFrameNumber = false;
-
-      if( !resourceReady )
-      {
-        ConditionalWait::ScopedLock lock( mConditionalWait );
-        mResourceReady = false;
-      }
     }
   }
 
   if( stopped && renderSuccess )
   {
-    ConditionalWait::ScopedLock lock( mConditionalWait );
-
     mPlayState = PlayState::STOPPED;
     mForward = true;
     mCurrentLoop = 0;