*
*/
-// EXTERNAL INCLUDES
-#include <string>
-
// INTERNAL INCLUDES
-#include <dali/devel-api/adaptor-framework/vector-image-renderer.h>
#include <dali/devel-api/adaptor-framework/pixel-buffer.h>
namespace Dali
virtual ~VectorImageRendererPlugin() {}
/**
- * @brief Second-phase constructor.
- */
- virtual bool Initialize() = 0;
-
- /**
- * @brief Sets the target buffer.
- *
- * @param[in] buffer The target buffer
- */
- virtual void SetBuffer( Dali::Devel::PixelBuffer &buffer ) = 0;
-
- /**
- * @brief Renders the content to the target buffer synchronously.
- *
- * @param[in] scale The target image scale
- * @return True if the rendering success, false otherwise.
- */
- virtual bool Render(float scale) = 0;
-
- /**
- * @brief Load vector image data form url.
+ * @brief Load vector image data directly.
*
- * @param[in] url The url of the vector image file
+ * @param[in] data The memory data of vector image
* @return True if the load success, false otherwise.
*/
- virtual bool Load( const std::string& url ) = 0;
+ virtual bool Load(const Vector<uint8_t>& data) = 0;
/**
- * @brief Load vector image data directly.
+ * @brief Rasterizes the content to the target buffer synchronously.
*
- * @param[in] data The memory data of vector image
- * @param[in] size The size of memory data
- * @return True if the load success, false otherwise.
+ * @param[in] buffer The target buffer
+ * @return True if the rendering succeeds, false otherwise.
*/
- virtual bool Load( const char *data, uint32_t size ) = 0;
+ virtual bool Rasterize(Dali::Devel::PixelBuffer &buffer) = 0;
/**
* @brief Gets the default size of the file.
};
} // namespace Dali
+
#endif // DALI_VECTOR_IMAGE_RENDERER_PLUGIN_H