From: tscholb Date: Fri, 6 May 2022 05:07:44 +0000 (+0900) Subject: [Tizen] Set the LoadSuccessflag to false after ReleaseResource() is called X-Git-Tag: accepted/tizen/6.5/unified/20220513.142059^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F89%2F274689%2F3;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Set the LoadSuccessflag to false after ReleaseResource() is called When the non-animated image is detached from the scene first and attached to the scene again, webp-loading can't load webp information because it is already loaded its information. To re-load this information, we need to set the flag to false. Change-Id: I08c00042dc84aa40cdfbe02d462920946ed5def2 --- diff --git a/dali/internal/imaging/common/webp-loading.cpp b/dali/internal/imaging/common/webp-loading.cpp index 346c12d..8efdc5b 100644 --- a/dali/internal/imaging/common/webp-loading.cpp +++ b/dali/internal/imaging/common/webp-loading.cpp @@ -193,6 +193,9 @@ public: free((void*)mBuffer); mBuffer = nullptr; } + + // Set the flag so that webp information can be reloaded when visual is re-attached to scene. + mLoadSucceeded = false; } // Moveable but not copyable @@ -315,6 +318,7 @@ Dali::Devel::PixelBuffer WebPLoading::LoadFrame(uint32_t frameIndex) free((void*)frameBuffer); } mImpl->ReleaseResource(); + return pixelBuffer; } #endif