Revert "(Vector) Add GetLayerInfo method"
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / vector-animation-renderer.h
index f7faf21..0c0a24a 100755 (executable)
@@ -2,7 +2,7 @@
 #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.
@@ -47,6 +47,9 @@ class DALI_ADAPTOR_API VectorAnimationRenderer : public BaseHandle
 {
 public:
 
+  /// @brief UploadCompleted signal type.
+  using UploadCompletedSignalType = Signal< void () >;
+
   /**
    * @brief Creates an initialized handle to a new VectorAnimationRenderer.
    *
@@ -97,23 +100,12 @@ public:
   void SetSize( uint32_t width, uint32_t height );
 
   /**
-   * @brief Starts the rendering.
-   *
-   * @return True if the renderer is successfully started, false otherwise.
-   */
-  bool StartRender();
-
-  /**
-   * @brief Stops the rendering.
-   */
-  void StopRender();
-
-  /**
    * @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
@@ -129,8 +121,22 @@ public:
    */
   float GetFrameRate() const;
 
+  /**
+   * @brief Gets the default size of the file,.
+   *
+   * @return The default size of the file
+   */
+  void GetDefaultSize( uint32_t& width, uint32_t& height ) const;
+
 public: // Signals
 
+  /**
+   * @brief Connect to this signal to be notified when the texture upload is completed.
+   *
+   * @return The signal to connect to.
+   */
+  UploadCompletedSignalType& UploadCompletedSignal();
+
 public: // Not intended for application developers
 
   /// @cond internal