From 257588aaeb7f818ee78731669de6cb7dcb962003 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Wed, 13 Feb 2019 16:31:24 +0900 Subject: [PATCH] Revert "[4.0] (AnimatedVectorImageVisual) Fix flickering issue" This reverts commit 8d63fcb6ae6ca70f9e68279beea01bf1b365a74a. Change-Id: Ia591045a93c630a187119417d954fd7f4f5be71a --- .../animated-vector-image/animated-vector-image-visual.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.cpp b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.cpp index b731c5f..a650f2e 100644 --- a/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.cpp +++ b/dali-toolkit/internal/visuals/animated-vector-image/animated-vector-image-visual.cpp @@ -221,16 +221,8 @@ void AnimatedVectorImageVisual::DoSetOnStage( Actor& actor ) // Hold the weak handle of the placement actor and delay the adding of renderer until the rasterization is finished. mPlacementActor = actor; - if( mVectorRasterizeThread ) - { - // We can use the previous rendered image - mVectorRasterizeThread->SetRenderer( mImpl->mRenderer ); - - actor.AddRenderer( mImpl->mRenderer ); - mPlacementActor.Reset(); - - ResourceReady( Toolkit::Visual::ResourceStatus::READY ); - } + // This visual needs it's size set before it can be rasterized hence set ResourceReady once on stage + ResourceReady( Toolkit::Visual::ResourceStatus::READY ); } void AnimatedVectorImageVisual::DoSetOffStage( Actor& actor ) @@ -370,8 +362,6 @@ void AnimatedVectorImageVisual::OnResourceReady() Stage::GetCurrent().KeepRendering( 0.0f ); } - - ResourceReady( Toolkit::Visual::ResourceStatus::READY ); } void AnimatedVectorImageVisual::OnAnimationFinished() -- 2.7.4