From 2d2e20c82c69b29da78015be824098cc6ea7d801 Mon Sep 17 00:00:00 2001 From: seungho Date: Thu, 22 Apr 2021 16:10:05 +0900 Subject: [PATCH] [Tizen] Waiting until texture is loaded in animated image visual Change-Id: I5a05d05270ffa1dc68f98044bbd3fc7f53af7f5e Signed-off-by: seungho --- .../visuals/animated-image/rolling-animated-image-cache.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp index 20265ca..55c8c9b 100644 --- a/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp +++ b/dali-toolkit/internal/visuals/animated-image/rolling-animated-image-cache.cpp @@ -18,6 +18,7 @@ #include "rolling-animated-image-cache.h" // EXTERNAL HEADERS +#include // INTERNAL HEADERS #include @@ -89,6 +90,15 @@ RollingAnimatedImageCache::~RollingAnimatedImageCache() TextureSet RollingAnimatedImageCache::Frame( uint32_t frameIndex ) { + if(mQueue.IsFull() && IsFrontReady() == true) + { + TextureSet textureSet = GetFrontTextureSet(); + if(!Dali::DevelTexture::IsUploaded(textureSet.GetTexture(0))) + { + return textureSet; + } + } + bool popExist = false; while( !mQueue.IsEmpty() && mQueue.Front().mFrameNumber != frameIndex ) { -- 2.7.4