-}
-
-Vector2 VectorRasterizeThread::GetPlayRange() const
-{
- return mPlayRange;
-}
-
-void VectorRasterizeThread::SetCurrentProgress( float progress )
-{
- ConditionalWait::ScopedLock lock( mConditionalWait );
-
- if( progress >= mPlayRange.x && progress <= mPlayRange.y )
- {
- mProgress = progress;
-
- if( mTotalFrame != 0 )
- {
- mCurrentFrame = static_cast< uint32_t >( mTotalFrame * progress + 0.5f );
- }
-
- mResourceReady = false;
-
- DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorRasterizeThread::SetCurrentProgress: progress = %f (%d)\n", progress, mCurrentFrame );
- }
-}
-
-float VectorRasterizeThread::GetCurrentProgress() const
-{
- return ( static_cast< float >( mCurrentFrame ) / static_cast< float >( mTotalFrame ) );
-}
-
-DevelImageVisual::PlayState VectorRasterizeThread::GetPlayState() const
-{
- return mPlayState;
-}
-
-bool VectorRasterizeThread::IsResourceReady() const
-{
- return mResourceReady;
-}
-
-bool VectorRasterizeThread::IsThreadReady()
-{
- ConditionalWait::ScopedLock lock( mConditionalWait );
-
- if( mPlayState != DevelImageVisual::PlayState::PLAYING && !mNeedRender && !mDestroyThread )
- {
- DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorRasterizeThread::IsThreadReady: Wait\n" );
-
- mConditionalWait.Wait( lock );
- }
-
- // Keep the thread alive if this thread is NOT to be destroyed
- return !mDestroyThread;
-}
-
-bool VectorRasterizeThread::StartRender()
-{
- //TODO: check the return value
- mVectorRenderer.StartRender();
-
- mTotalFrame = mVectorRenderer.GetTotalFrameNumber();
-
- mStartFrame = static_cast< uint32_t >( mPlayRange.x * mTotalFrame + 0.5f );
- mEndFrame = static_cast< uint32_t >( mPlayRange.y * mTotalFrame + 0.5f );
-
- mCurrentFrame = std::max( static_cast< uint32_t >( mTotalFrame * mProgress + 0.5f ), mStartFrame );
-
- DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorRasterizeThread::StartRender: Renderer is started [%d (%d, %d)]\n", mTotalFrame, mStartFrame, mEndFrame );
-
- return true;
-}
-
-void VectorRasterizeThread::Rasterize()
-{
- DALI_LOG_INFO( gVectorAnimationLogFilter, Debug::Verbose, "VectorRasterizeThread::Rasterize: [%d]\n", mCurrentFrame );
-
- bool needRender, resourceReady;