[3.0] Modify native render surface for sync. with replace surface
[platform/core/uifw/dali-adaptor.git] / adaptors / integration-api / wayland / native-render-surface.h
index 23a3120..565eec2 100644 (file)
@@ -73,12 +73,18 @@ public: // API
   virtual tbm_surface_h GetDrawable();
 
   /**
-   * @brief Get the surface
+   * @brief Gets the surface
    *
-   * @return tbm surface
+   * @return TBM surface
    */
   virtual Any GetSurface();
 
+  /**
+   * @brief Waits tbm surface after replace surface
+   * After tbm surface is acquired in PostRender, this function is finished.
+   */
+  void WaitDrawableAfterReplaceSurface();
+
 public: // from Dali::RenderSurface
 
   /**
@@ -158,6 +164,11 @@ private:
    */
   virtual void CreateNativeRenderable();
 
+  /**
+   * Release tbm surface
+   */
+  void ReleaseDrawable();
+
 private: // Data
 
   struct Impl;