From: EverLEEst(SangHyeon Lee) Date: Tue, 10 May 2022 05:36:10 +0000 (+0900) Subject: [Tizen] Change PixelBufferLoadedSignalType X-Git-Tag: submit/tizen/20220510.081954 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen%2F20220510.081954 [Tizen] Change PixelBufferLoadedSignalType This reverts commit 5eb6a1d844d41f8617d2a09dc9557031c6499c39. --- diff --git a/dali-toolkit/devel-api/image-loader/async-image-loader-devel.h b/dali-toolkit/devel-api/image-loader/async-image-loader-devel.h index 9cf1589..ce91e09 100644 --- a/dali-toolkit/devel-api/image-loader/async-image-loader-devel.h +++ b/dali-toolkit/devel-api/image-loader/async-image-loader-devel.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_DEVEL_API_IMAGE_LOADER_ASYNC_IMAGE_LOADER_DEVEL_H /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ namespace Toolkit { namespace DevelAsyncImageLoader { -typedef Signal PixelBufferLoadedSignalType; +typedef Signal&)> PixelBufferLoadedSignalType; /** * @brief Whether to multiply alpha into color channels on load diff --git a/dali-toolkit/internal/image-loader/async-image-loader-impl.cpp b/dali-toolkit/internal/image-loader/async-image-loader-impl.cpp index 64639b5..c4dc2a0 100644 --- a/dali-toolkit/internal/image-loader/async-image-loader-impl.cpp +++ b/dali-toolkit/internal/image-loader/async-image-loader-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -135,7 +135,8 @@ void AsyncImageLoader::ProcessLoadedImage() { if(mPixelBufferLoadedSignal.GetConnectionCount() > 0) { - mPixelBufferLoadedSignal.Emit(next->id, next->pixelBuffer); + std::vector pixelBuffers{next->pixelBuffer}; + mPixelBufferLoadedSignal.Emit(next->id, pixelBuffers); } else if(mLoadedSignal.GetConnectionCount() > 0) { 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..02bbfde 100644 --- a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp +++ b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.cpp @@ -99,8 +99,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 +111,7 @@ void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id, if(loadingInfo.loadId == id) { // Call TextureManager::AsyncLoadComplete - mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffer); + mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffers[0]); } mLoadingInfoContainer.pop_front(); diff --git a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h index 4bfc961..1d92aef 100644 --- a/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h +++ b/dali-toolkit/internal/texture-manager/texture-async-loading-helper.h @@ -124,11 +124,11 @@ private: AsyncLoadingInfoContainerType&& loadingInfoContainer); /** - * @brief Callback to be called when texture loading is complete, it passes the pixel buffer on to texture manager. - * @param[in] id Loader id - * @param[in] pixelBuffer Image data + * @brief Callback to be called when texture loading is complete, it passes the pixel buffer list on to texture manager. + * @param[in] id Loader id + * @param[in] pixelBuffers Image data */ - void AsyncLoadComplete(std::uint32_t id, Devel::PixelBuffer pixelBuffer); + void AsyncLoadComplete(std::uint32_t id, std::vector& pixelBuffers); private: // Member Variables: Toolkit::AsyncImageLoader mLoader;