#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.
{
namespace DevelAsyncImageLoader
{
-typedef Signal<void(uint32_t, Devel::PixelBuffer)> PixelBufferLoadedSignalType;
+typedef Signal<void(uint32_t, std::vector<Devel::PixelBuffer>&)> PixelBufferLoadedSignalType;
/**
* @brief Whether to multiply alpha into color channels on load
/*
- * 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.
{
if(mPixelBufferLoadedSignal.GetConnectionCount() > 0)
{
- mPixelBufferLoadedSignal.Emit(next->id, next->pixelBuffer);
+ std::vector<Devel::PixelBuffer> pixelBuffers{next->pixelBuffer};
+ mPixelBufferLoadedSignal.Emit(next->id, pixelBuffers);
}
else if(mLoadedSignal.GetConnectionCount() > 0)
{
this, &TextureAsyncLoadingHelper::AsyncLoadComplete);
}
-void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id,
- Devel::PixelBuffer pixelBuffer)
+void TextureAsyncLoadingHelper::AsyncLoadComplete(uint32_t id,
+ std::vector<Devel::PixelBuffer>& pixelBuffers)
{
DALI_LOG_INFO(gTextureManagerLogFilter, Debug::Concise, "TextureAsyncLoadingHelper::AsyncLoadComplete( loadId :%d )\n", id);
if(mLoadingInfoContainer.size() >= 1u)
if(loadingInfo.loadId == id)
{
// Call TextureManager::AsyncLoadComplete
- mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffer);
+ mTextureManager.AsyncLoadComplete(loadingInfo.textureId, pixelBuffers[0]);
}
mLoadingInfoContainer.pop_front();
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<Devel::PixelBuffer>& pixelBuffers);
private: // Member Variables:
Toolkit::AsyncImageLoader mLoader;