Revert "(Vector) Add GetLayerInfo method"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / vector-animation-renderer-plugin.h
index a9f25c6..6fa992d 100644 (file)
@@ -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 <dali/public-api/rendering/renderer.h>
 #include <string>
 
+// INTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/vector-animation-renderer.h>
+
 namespace Dali
 {
 
@@ -34,6 +37,8 @@ class VectorAnimationRendererPlugin
 {
 public:
 
+  using UploadCompletedSignalType = Dali::VectorAnimationRenderer::UploadCompletedSignalType;
+
   /**
    * @brief Constructor
    */
@@ -67,16 +72,12 @@ public:
   virtual void SetSize( uint32_t width, uint32_t height ) = 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 +101,13 @@ public:
   virtual void GetDefaultSize( uint32_t& width, uint32_t& height ) 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* (*)();