X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftexture-manager%2Ftexture-async-loading-helper.cpp;h=8f0982e19ade938d66e0dd626103ea1847a35951;hp=1eee5bcd2becbf67599a1c9f35adccc8d04fe22b;hb=11e1ee5bb1a33525dd3016a0fd145a6a3ee2c133;hpb=f6004b92a7b8ea0feed9c468943a3c369da4501e diff --git a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp index 1eee5bc..8f0982e 100644 --- a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp +++ b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp @@ -40,12 +40,13 @@ TextureAsyncLoadingHelper::TextureAsyncLoadingHelper(TextureManager& textureMana { } -void TextureAsyncLoadingHelper::LoadAnimatedImage(const TextureManager::TextureId& textureId, - Dali::AnimatedImageLoading animatedImageLoading, - const std::uint32_t& frameIndex) +void TextureAsyncLoadingHelper::LoadAnimatedImage(const TextureManager::TextureId& textureId, + Dali::AnimatedImageLoading animatedImageLoading, + const std::uint32_t& frameIndex, + const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad) { mLoadingInfoContainer.push_back(AsyncLoadingInfo(textureId)); - auto id = GetImplementation(mLoader).LoadAnimatedImage(animatedImageLoading, frameIndex); + auto id = GetImplementation(mLoader).LoadAnimatedImage(animatedImageLoading, frameIndex, preMultiplyOnLoad); mLoadingInfoContainer.back().loadId = id; } @@ -55,7 +56,8 @@ void TextureAsyncLoadingHelper::Load(const TextureManager::TextureId& const Dali::FittingMode::Type& fittingMode, const Dali::SamplingMode::Type& samplingMode, const bool& orientationCorrection, - const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad) + const DevelAsyncImageLoader::PreMultiplyOnLoad& preMultiplyOnLoad, + const bool& loadYuvPlanes) { mLoadingInfoContainer.push_back(AsyncLoadingInfo(textureId)); if(DALI_UNLIKELY(url.IsBufferResource())) @@ -65,7 +67,7 @@ void TextureAsyncLoadingHelper::Load(const TextureManager::TextureId& } else { - auto id = GetImplementation(mLoader).Load(url, desiredSize, fittingMode, samplingMode, orientationCorrection, preMultiplyOnLoad); + auto id = GetImplementation(mLoader).Load(url, desiredSize, fittingMode, samplingMode, orientationCorrection, preMultiplyOnLoad, loadYuvPlanes); mLoadingInfoContainer.back().loadId = id; } } @@ -99,8 +101,8 @@ TextureAsyncLoadingHelper::TextureAsyncLoadingHelper( this, &TextureAsyncLoadingHelper::AsyncLoadComplete); } -void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id, - Devel::PixelBuffer pixelBuffer) +void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id, + std::vector& pixelBuffers) { DALI_LOG_INFO(gTextureManagerLogFilter, Debug::Concise, "TextureAsyncLoadingHelper::AsyncLoadComplete( loadId :%d )\n", id); if(mLoadingInfoContainer.size() >= 1u) @@ -111,7 +113,7 @@ void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id, if(loadingInfo.loadId == id) { // Call TextureManager::AsyncLoadComplete - mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffer); + mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffers); } mLoadingInfoContainer.pop_front();