[3.0] NativeImageSource with tbm_surface for tizen 3.0 wayland
[platform/core/uifw/dali-adaptor.git] / adaptors / public-api / adaptor-framework / native-image-source.h
index dea2a14..b81514d 100644 (file)
@@ -50,8 +50,8 @@ typedef IntrusivePtr<NativeImageSource> NativeImageSourcePtr;
 /**
  * @brief Used for displaying native images.
  *
- * The native image source can be created internally or
- * externally by X11 or ECORE-X11.
+ * NativeImageSource can be created internally or
+ * externally by native image source.
  *
  * @since DALi 1.1.4
  */
@@ -83,7 +83,7 @@ public:
   static NativeImageSourcePtr New( unsigned int width, unsigned int height, ColorDepth depth );
 
   /**
-   * @brief Create a new NativeImageSource from an existing native image.
+   * @brief Create a new NativeImageSource from an existing native image source.
    *
    * @param[in] nativeImageSource must be a X11 pixmap or a Ecore_X_Pixmap
    * @return A smart-pointer to a newly allocated image.
@@ -121,6 +121,13 @@ public:
    */
   bool EncodeToFile(const std::string& filename) const;
 
+  /**
+   * @brief Set an existing native image source
+   *
+   * @param[in] source Any handle with native image source
+   */
+  void SetNativeImageSource( Any source );
+
 private:   // native image
 
   /**
@@ -158,6 +165,11 @@ private:   // native image
    */
   virtual bool RequiresBlending() const;
 
+  /**
+   * @copydoc Dali::NativeImageInterface::GetExtension()
+   */
+  NativeImageInterface::Extension* GetExtension();
+
 private:
 
   /**
@@ -165,7 +177,7 @@ private:
    * @param[in] width The width of the image.
    * @param[in] height The height of the image.
    * @param[in] depth color depth of the image.
-   * @param[in] nativeImageSource contains either: pixmap of type X11 Pixmap , a Ecore_X_Pixmap or is empty
+   * @param[in] nativeImageSource contains either: native image source or is empty
    */
   DALI_INTERNAL NativeImageSource( unsigned int width, unsigned int height, ColorDepth depth, Any nativeImageSource );