[4.0] When native image is destroyed, It call TriggerEventInterface callback.
[platform/core/uifw/dali-adaptor.git] / adaptors / tizen / native-image-source-impl.h
old mode 100755 (executable)
new mode 100644 (file)
index 9bed6e7..a724d1e
@@ -34,12 +34,8 @@ namespace Internal
 
 namespace Adaptor
 {
-class EglImageExtensions;
 
-namespace
-{
-  typedef Dali::Vector< void* > EglImageContainer;
-};
+class EglImageExtensions;
 
 /**
  * Dali internal NativeImageSource.
@@ -67,6 +63,7 @@ public:
    */
   Any GetNativeImageSource() const;
 
+
   /**
    * @copydoc Dali::NativeImageSource::GetPixels()
    */
@@ -159,6 +156,11 @@ public:
    */
   int GetEglImageTextureTarget();
 
+  /**
+   * @copydoc Dali::NativeImageInterface::Extension::SetDestructorNotification((void *notification)
+   */
+  void SetDestructorNotification(void* notification);
+
 private:
 
   /**
@@ -193,7 +195,7 @@ private:
   void* mEglImageKHR;                         ///< From EGL extension
   EglImageExtensions* mEglImageExtensions;    ///< The EGL Image Extensions
   bool mSetSource;
-  EglImageContainer mEglImageKHRContainer;
+  void *mNotification;
 };
 
 } // namespace Adaptor