X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fvector-animation-renderer-plugin.h;h=a640f3c9892760b1bc2da391e33e80cb298c01d1;hb=cb24bde9744a7bd99793edc79d5180c0a1d3bed1;hp=b371733616d6f0c3931eb54a385180d82466def9;hpb=45d666eb30e44b193fed75edd7907cb95d43a20c;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h index b371733..a640f3c 100644 --- a/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h +++ b/dali/devel-api/adaptor-framework/vector-animation-renderer-plugin.h @@ -2,7 +2,7 @@ #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. @@ -22,6 +22,9 @@ #include #include +// INTERNAL INCLUDES +#include + namespace Dali { @@ -34,6 +37,8 @@ class VectorAnimationRendererPlugin { public: + using UploadCompletedSignalType = Dali::VectorAnimationRenderer::UploadCompletedSignalType; + /** * @brief Constructor */ @@ -45,11 +50,11 @@ public: virtual ~VectorAnimationRendererPlugin() {} /** - * @brief Sets the url of the animation file. + * @brief Second-phase constructor. * * @param[in] url The url of the animation file */ - virtual void SetUrl( const std::string& url ) = 0; + virtual bool Initialize( const std::string& url ) = 0; /** * @brief Sets the renderer used to display the result image. @@ -67,23 +72,12 @@ public: virtual void SetSize( uint32_t width, uint32_t height ) = 0; /** - * @brief Starts the rendering. - * - * @return True if the renderer is successfully started, false otherwise - */ - virtual bool StartRender() = 0; - - /** - * @brief Stops the rendering. - */ - virtual void StopRender() = 0; - - /** * @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. @@ -100,6 +94,28 @@ public: virtual float GetFrameRate() const = 0; /** + * @brief Gets the default size of the file. + * + * @param[out] width The default width of the file + * @param[out] height The default height of the file + */ + virtual void GetDefaultSize( uint32_t& width, uint32_t& height ) const = 0; + + /** + * @brief Gets the layer information of all the child layers. + * + * @param[out] map The layer information + */ + virtual void GetLayerInfo( Property::Map& map ) const = 0; + + /** + * @brief Connect to this signal to be notified when the texture upload is completed. + * + * @return The signal to connect to. + */ + virtual UploadCompletedSignalType& UploadCompletedSignal() = 0; + + /** * @brief Function pointer called in adaptor to create a plugin instance. */ using CreateVectorAnimationRendererFunction = VectorAnimationRendererPlugin* (*)();