#define DALI_VECTOR_ANIMATION_RENDERER_PLUGIN_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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 Renders the content to the target buffer synchronously.
*
* @param[in] frameNumber The frame number to be rendered
+ * @return True if the rendering success, false otherwise.
*/
- virtual void Render( uint32_t frameNumber ) = 0;
+ virtual bool Render( uint32_t frameNumber ) = 0;
/**
* @brief Gets the total number of frames of the file.
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
GetImplementation( *this ).StopRender();
}
-void VectorAnimationRenderer::Render( uint32_t frameNumber )
+bool VectorAnimationRenderer::Render( uint32_t frameNumber )
{
- GetImplementation( *this ).Render( frameNumber );
+ return GetImplementation( *this ).Render( frameNumber );
}
uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
#define DALI_VECTOR_ANIMATION_RENDERER_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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 Renders the content to the target buffer synchronously.
*
* @param[in] frameNumber The frame number to be rendered
+ * @return True if the rendering success, false otherwise.
*/
- void Render( uint32_t frameNumber );
+ bool Render( uint32_t frameNumber );
/**
* @brief Gets the total number of frames of the file
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
mPlugin.StopRender();
}
-void VectorAnimationRenderer::Render( uint32_t frameNumber )
+bool VectorAnimationRenderer::Render( uint32_t frameNumber )
{
- mPlugin.Render( frameNumber );
+ return mPlugin.Render( frameNumber );
}
uint32_t VectorAnimationRenderer::GetTotalFrameNumber() const
#define DALI_INTERNAL_VECTOR_ANIMATION_RENDERER_IMPL_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
/**
* @copydoc Dali::VectorAnimationRenderer::Render()
*/
- void Render( uint32_t frameNumber );
+ bool Render( uint32_t frameNumber );
/**
* @copydoc Dali::VectorAnimationRenderer::GetTotalFrameNumber()
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
}
}
-void VectorAnimationRendererPluginProxy::Render( uint32_t frameNumber )
+bool VectorAnimationRendererPluginProxy::Render( uint32_t frameNumber )
{
if( mPlugin )
{
- mPlugin->Render( frameNumber );
+ return mPlugin->Render( frameNumber );
}
+ return false;
}
uint32_t VectorAnimationRendererPluginProxy::GetTotalFrameNumber() const
#define DALI_INTERNAL_VECTOR_ANIMATION_RENDERER_PLUGIN_PROXY_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 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.
/**
* @copydoc Dali::VectorAnimationRendererPlugin::Render()
*/
- void Render( uint32_t frameNumber );
+ bool Render( uint32_t frameNumber );
/**
* @copydoc Dali::VectorAnimationRendererPlugin::GetTotalFrameNumber()