Add new API that user can control the tbm_queue queue count.
It will be useful when we don't want to create 3 size of tbm_queue.
Change-Id: I4e1e5cbcb303411da5e45ffc5b1f42d26df90275
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
NativeImageSourceQueuePtr NativeImageSourceQueue::New(uint32_t width, uint32_t height, ColorFormat colorFormat)
{
Any empty;
- NativeImageSourceQueuePtr image = new NativeImageSourceQueue(width, height, colorFormat, empty);
+ NativeImageSourceQueuePtr image = new NativeImageSourceQueue(0, width, height, colorFormat, empty);
+ if(image->mImpl)
+ {
+ return image;
+ }
+ return nullptr;
+}
+
+NativeImageSourceQueuePtr NativeImageSourceQueue::New(uint32_t queueCount, uint32_t width, uint32_t height, ColorFormat colorFormat)
+{
+ Any empty;
+ NativeImageSourceQueuePtr image = new NativeImageSourceQueue(queueCount, width, height, colorFormat, empty);
if(image->mImpl)
{
return image;
NativeImageSourceQueuePtr NativeImageSourceQueue::New(Any nativeImageSourceQueue)
{
//ColorFormat will be ignored.
- NativeImageSourceQueuePtr image = new NativeImageSourceQueue(0, 0, ColorFormat::BGRA8888, nativeImageSourceQueue);
+ NativeImageSourceQueuePtr image = new NativeImageSourceQueue(0, 0, 0, ColorFormat::BGRA8888, nativeImageSourceQueue);
if(image->mImpl)
{
return image;
mImpl->PrepareTexture();
}
+uint32_t NativeImageSourceQueue::GetQueueCount() const
+{
+ return mImpl->GetQueueCount();
+}
+
uint32_t NativeImageSourceQueue::GetWidth() const
{
return mImpl->GetWidth();
return mImpl->GetNativeImageInterfaceExtension();
}
-NativeImageSourceQueue::NativeImageSourceQueue(uint32_t width, uint32_t height, ColorFormat colorFormat, Any nativeImageSourceQueue)
+NativeImageSourceQueue::NativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, ColorFormat colorFormat, Any nativeImageSourceQueue)
{
auto factory = Dali::Internal::Adaptor::GetNativeImageSourceFactory();
- mImpl = factory->CreateNativeImageSourceQueue(width, height, colorFormat, nativeImageSourceQueue);
+ mImpl = factory->CreateNativeImageSourceQueue(queueCount, width, height, colorFormat, nativeImageSourceQueue);
}
NativeImageSourceQueue::~NativeImageSourceQueue()
#define DALI_NATIVE_IMAGE_SOURCE_QUEUE_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
/**
* @brief Creates a new NativeImageSourceQueue.
* Depending on hardware, the width and height may have to be a power of two.
+ * It will use 3, or defined by DALI_TBM_SURFACE_QUEUE_SIZE as default.
* @param[in] width The width of the image
* @param[in] height The height of the image
* @param[in] colorFormat The color format of the image
static NativeImageSourceQueuePtr New(uint32_t width, uint32_t height, ColorFormat colorFormat);
/**
+ * @brief Creates a new NativeImageSourceQueue with the queue size.
+ * Depending on hardware, the width and height may have to be a power of two.
+ * @note Since queueCount can increase the memory usage, we recommened queueCount value is less or equal than 3.
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
+ * @param[in] width The width of the image
+ * @param[in] height The height of the image
+ * @param[in] colorFormat The color format of the image
+ * @return A smart-pointer to a newly allocated image
+ */
+ static NativeImageSourceQueuePtr New(uint32_t queueCount, uint32_t width, uint32_t height, ColorFormat colorFormat);
+
+ /**
* @brief Creates a new NativeImageSourceQueue from an existing native image source.
*
* @param[in] nativeImageSourceQueue NativeImageSourceQueue must be a any handle with native image source
*/
const char* GetCustomSamplerTypename() const override;
+ /**
+ * @brief Get the number of queue count for this image.
+ *
+ * @return The number of queue count.
+ */
+ uint32_t GetQueueCount() const;
+
private: // native image
/**
* @copydoc Dali::NativeImageInterface::CreateResource()
/// @cond internal
/**
* @brief Private constructor.
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image
* @param[in] height The height of the image
* @param[in] colorFormat The color format of the image
* @param[in] nativeImageSourceQueue contains either: native image source or is empty
*/
- DALI_INTERNAL NativeImageSourceQueue(uint32_t width, uint32_t height, ColorFormat colorFormat, Any nativeImageSourceQueue);
+ DALI_INTERNAL NativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, ColorFormat colorFormat, Any nativeImageSourceQueue);
/**
* @brief A reference counted object may only be deleted by calling Unreference().
return std::unique_ptr<NativeImageSource>(NativeImageSourceAndroid::New(width, height, depth, nativeImageSource));
}
-std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryAndroid::CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryAndroid::CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueAndroid::New(width, height, colorFormat, nativeImageSourceQueue));
+ return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueAndroid::New(queueCount, width, height, colorFormat, nativeImageSourceQueue));
}
// this should be created from somewhere
public:
std::unique_ptr<NativeImageSource> CreateNativeImageSource(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) override;
- std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
+ std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
};
} // namespace Adaptor
{
namespace Adaptor
{
-NativeImageSourceQueueAndroid* NativeImageSourceQueueAndroid::New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+NativeImageSourceQueueAndroid* NativeImageSourceQueueAndroid::New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- NativeImageSourceQueueAndroid* image = new NativeImageSourceQueueAndroid(width, height, colorFormat, nativeImageSourceQueue);
+ NativeImageSourceQueueAndroid* image = new NativeImageSourceQueueAndroid(queueCount, width, height, colorFormat, nativeImageSourceQueue);
return image;
}
-NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
-: mWidth(width),
+NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+: mQueueCount(queueCount),
+ mWidth(width),
mHeight(height)
{
DALI_LOG_ERROR("NativeImageSourceQueueAndroid::NativeImageSourceQueueAndroid: Not supported\n");
/**
* Create a new NativeImageSourceQueueAndroid internally.
* Depending on hardware the width and height may have to be a power of two.
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The color format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
* @return A smart-pointer to a newly allocated image.
*/
- static NativeImageSourceQueueAndroid* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ static NativeImageSourceQueueAndroid* New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
/**
* @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
void PrepareTexture() override;
/**
+ * @copydoc Dali::NativeImageSourceQueue::GetQueueCount()
+ */
+ uint32_t GetQueueCount() const override
+ {
+ return mQueueCount;
+ }
+
+ /**
* @copydoc Dali::NativeImageInterface::GetWidth()
*/
uint32_t GetWidth() const override
private:
/**
* Private constructor; @see NativeImageSourceQueue::New()
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The color format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
*/
- NativeImageSourceQueueAndroid(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ NativeImageSourceQueueAndroid(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
private:
- uint32_t mWidth; ///< image width
- uint32_t mHeight; ///< image height
+ uint32_t mQueueCount; ///< queue count
+ uint32_t mWidth; ///< image width
+ uint32_t mHeight; ///< image height
};
} // namespace Adaptor
virtual std::unique_ptr<NativeImageSource> CreateNativeImageSource(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) = 0;
- virtual std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) = 0;
+ virtual std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) = 0;
};
extern std::unique_ptr<NativeImageSourceFactory> GetNativeImageSourceFactory();
/**
* @copydoc Dali::NativeImageSourceQueue::New()
*/
- static NativeImageSourceQueue* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ static NativeImageSourceQueue* New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
/**
* @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
virtual Any GetNativeImageSourceQueue() const = 0;
/**
+ * @copydoc Dali::NativeImageSourceQueue::GetQueueCount
+ */
+ virtual uint32_t GetQueueCount() const = 0;
+
+ /**
* @copydoc Dali::NativeImageSourceQueue::SetSize
*/
virtual void SetSize(uint32_t width, uint32_t height) = 0;
std::unique_ptr<NativeImageSourceQueue>
NativeImageSourceFactoryCocoa::CreateNativeImageSourceQueue(
+ uint32_t queueCount,
uint32_t width,
uint32_t height,
Dali::NativeImageSourceQueue::ColorFormat colorFormat,
Any nativeImageSource) override;
std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(
+ uint32_t queueCount,
uint32_t width,
uint32_t height,
Dali::NativeImageSourceQueue::ColorFormat colorFormat,
return std::unique_ptr<NativeImageSource>(NativeImageSourceTizen::New(width, height, depth, nativeImageSource));
}
-std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryTizen::CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryTizen::CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueTizen::New(width, height, colorFormat, nativeImageSourceQueue));
+ return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueTizen::New(queueCount, width, height, colorFormat, nativeImageSourceQueue));
}
// this should be created from somewhere
public:
std::unique_ptr<NativeImageSource> CreateNativeImageSource(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) override;
- std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
+ std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
};
} // namespace Adaptor
} // namespace
-NativeImageSourceQueueTizen* NativeImageSourceQueueTizen::New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+NativeImageSourceQueueTizen* NativeImageSourceQueueTizen::New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- NativeImageSourceQueueTizen* image = new NativeImageSourceQueueTizen(width, height, colorFormat, nativeImageSourceQueue);
+ NativeImageSourceQueueTizen* image = new NativeImageSourceQueueTizen(queueCount, width, height, colorFormat, nativeImageSourceQueue);
DALI_ASSERT_DEBUG(image && "NativeImageSourceQueueTizen allocation failed.");
if(image)
return image;
}
-NativeImageSourceQueueTizen::NativeImageSourceQueueTizen(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+NativeImageSourceQueueTizen::NativeImageSourceQueueTizen(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
: mMutex(),
+ mQueueCount(queueCount),
mWidth(width),
mHeight(height),
mTbmQueue(NULL),
if(mTbmQueue != NULL)
{
mBlendingRequired = CheckBlending(tbm_surface_queue_get_format(mTbmQueue));
+ mQueueCount = tbm_surface_queue_get_size(mTbmQueue);
mWidth = tbm_surface_queue_get_width(mTbmQueue);
mHeight = tbm_surface_queue_get_height(mTbmQueue);
}
}
}
- mTbmQueue = tbm_surface_queue_create(GetTbmSurfaceQueueSize(), mWidth, mHeight, tbmFormat, 0);
+ if(mQueueCount == 0)
+ {
+ mQueueCount = GetTbmSurfaceQueueSize();
+ }
+
+ mTbmQueue = tbm_surface_queue_create(mQueueCount, mWidth, mHeight, tbmFormat, 0);
if(!mTbmQueue)
{
DALI_LOG_ERROR("NativeImageSourceQueueTizen::Initialize: tbm_surface_queue_create is failed! [%p]\n", mTbmQueue);
/**
* Create a new NativeImageSourceQueueTizen internally.
* Depending on hardware the width and height may have to be a power of two.
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The color format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
* @return A smart-pointer to a newly allocated image.
*/
- static NativeImageSourceQueueTizen* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ static NativeImageSourceQueueTizen* New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
/**
* @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
void PrepareTexture() override;
/**
+ * @copydoc Dali::NativeImageSourceQueue::GetQueueCount()
+ */
+ uint32_t GetQueueCount() const override
+ {
+ return mQueueCount;
+ }
+
+ /**
* @copydoc Dali::NativeImageInterface::GetWidth()
*/
uint32_t GetWidth() const override
private:
/**
* Private constructor; @see NativeImageSourceQueue::New()
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
*/
- NativeImageSourceQueueTizen(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ NativeImageSourceQueueTizen(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
void Initialize(Dali::NativeImageSourceQueue::ColorFormat colorFormat);
typedef std::pair<tbm_surface_h, uint8_t*> BufferPair;
Dali::Mutex mMutex; ///< Mutex
+ uint32_t mQueueCount; ///< queue count
uint32_t mWidth; ///< image width
uint32_t mHeight; ///< image height
tbm_surface_queue_h mTbmQueue; ///< Tbm surface queue handle
return std::unique_ptr<NativeImageSource>(NativeImageSourceX::New(width, height, depth, nativeImageSource));
}
-std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryX::CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryX::CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueX::New(width, height, colorFormat, nativeImageSourceQueue));
+ return std::unique_ptr<NativeImageSourceQueue>(NativeImageSourceQueueX::New(queueCount, width, height, colorFormat, nativeImageSourceQueue));
}
// this should be created from somewhere
public:
std::unique_ptr<NativeImageSource> CreateNativeImageSource(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) override;
- std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
+ std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
};
} // namespace Adaptor
#define TBM_SURFACE_QUEUE_SIZE 3
} // namespace
-NativeImageSourceQueueX* NativeImageSourceQueueX::New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+NativeImageSourceQueueX* NativeImageSourceQueueX::New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
- NativeImageSourceQueueX* image = new NativeImageSourceQueueX(width, height, colorFormat, nativeImageSourceQueue);
+ NativeImageSourceQueueX* image = new NativeImageSourceQueueX(queueCount, width, height, colorFormat, nativeImageSourceQueue);
return image;
}
-NativeImageSourceQueueX::NativeImageSourceQueueX(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
-: mWidth(width),
+NativeImageSourceQueueX::NativeImageSourceQueueX(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+: mQueueCount(queueCount),
+ mWidth(width),
mHeight(height)
{
DALI_LOG_ERROR("NativeImageSourceQueueX::NativeImageSourceQueueX: Not supported\n");
/**
* Create a new NativeImageSourceQueueX internally.
* Depending on hardware the width and height may have to be a power of two.
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The color format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
* @return A smart-pointer to a newly allocated image.
*/
- static NativeImageSourceQueueX* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ static NativeImageSourceQueueX* New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
/**
* @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
void PrepareTexture() override;
/**
+ * @copydoc Dali::NativeImageSourceQueue::GetQueueCount
+ */
+ uint32_t GetQueueCount() const override
+ {
+ return mQueueCount;
+ }
+
+ /**
* @copydoc Dali::NativeImageInterface::GetWidth()
*/
uint32_t GetWidth() const override
private:
/**
* Private constructor; @see NativeImageSourceQueue::New()
+ * @param[in] queueCount The number of queue of the image. If it is 0, will use default.
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colorFormat The color format of the image.
* @param[in] nativeImageSourceQueue contains tbm_surface_queue_h or is empty
*/
- NativeImageSourceQueueX(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
+ NativeImageSourceQueueX(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue);
private:
- uint32_t mWidth; ///< image width
- uint32_t mHeight; ///< image height
+ uint32_t mQueueCount; ///< queue count
+ uint32_t mWidth; ///< image width
+ uint32_t mHeight; ///< image height
};
} // namespace Adaptor
return std::unique_ptr<NativeImageSource>(NativeImageSourceWin::New(width, height, depth, nativeImageSource));
}
-std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryWin::CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
+std::unique_ptr<NativeImageSourceQueue> NativeImageSourceFactoryWin::CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
{
return std::unique_ptr<NativeImageSourceQueue>(nullptr);
}
public:
std::unique_ptr<NativeImageSource> CreateNativeImageSource(uint32_t width, uint32_t height, Dali::NativeImageSource::ColorDepth depth, Any nativeImageSource) override;
- std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
+ std::unique_ptr<NativeImageSourceQueue> CreateNativeImageSourceQueue(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue) override;
};
} // namespace Adaptor