/**
* @brief Used for displaying native images.
*
- * NativeImageSource can be created internally or externally by native image source.
* NativeImage is a platform specific way of providing pixel data to the GPU for rendering,for example via an EGL image.
+ * NativeImageSourceQueue can be created internally or externally by native image source.
+ * It has a queue which handles some image buffers.
+ * Someone should fill the buffers and enqueue them, then DALi will show them.
*/
class DALI_ADAPTOR_API NativeImageSourceQueue : public NativeImageInterface
{
*/
virtual bool CreateRenderer( const std::string& url, Renderer renderer, uint32_t width, uint32_t height ) = 0;
+ /**
+ * @brief Sets the target image size.
+ *
+ * @param[in] width The target image width
+ * @param[in] height The target image height
+ */
+ virtual void SetSize( uint32_t width, uint32_t height ) = 0;
+
/**
* @brief Starts the rendering.
*
return *this;
}
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+ GetImplementation( *this ).SetSize( width, height );
+}
+
bool VectorAnimationRenderer::StartRender()
{
return GetImplementation( *this ).StartRender();
*/
VectorAnimationRenderer& operator=( const VectorAnimationRenderer& rhs );
+ /**
+ * @brief Sets the target image size.
+ *
+ * @param[in] width The target image width
+ * @param[in] height The target image height
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
/**
* @brief Starts the rendering.
*
mPlugin.CreateRenderer( url, renderer, width, height );
}
+void VectorAnimationRenderer::SetSize( uint32_t width, uint32_t height )
+{
+ mPlugin.SetSize( width, height );
+}
+
bool VectorAnimationRenderer::StartRender()
{
return mPlugin.StartRender();
*/
void Initialize( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
+ /**
+ * @copydoc Dali::VectorAnimationRenderer::SetSize()
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
/**
* @copydoc Dali::VectorAnimationRenderer::StartRender()
*/
return false;
}
+void VectorAnimationRendererPluginProxy::SetSize( uint32_t width, uint32_t height )
+{
+ if( mPlugin )
+ {
+ mPlugin->SetSize( width, height );
+ }
+}
+
bool VectorAnimationRendererPluginProxy::StartRender()
{
if( mPlugin )
*/
bool CreateRenderer( const std::string& url, Dali::Renderer renderer, uint32_t width, uint32_t height );
+ /**
+ * @copydoc Dali::VectorAnimationRendererPlugin::SetSize()
+ */
+ void SetSize( uint32_t width, uint32_t height );
+
/**
* @copydoc Dali::VectorAnimationRendererPlugin::StartRender()
*/