Revert "[4.0] When native image is destroyed, It call TriggerEventInterface callback." 54/155654/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:08:01 +0000 (11:08 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 16 Oct 2017 02:08:08 +0000 (11:08 +0900)
This reverts commit 1e2d12743cac6d2a25f8dc882cdcec113a643b9a.

Change-Id: I70fd5acabe1d5184a3e478e0674b21da0b963907

adaptors/public-api/adaptor-framework/native-image-source.cpp [changed mode: 0644->0755]
adaptors/public-api/adaptor-framework/native-image-source.h [changed mode: 0644->0755]
adaptors/tizen/native-image-source-impl-tizen.cpp [changed mode: 0644->0755]
adaptors/tizen/native-image-source-impl.h [changed mode: 0644->0755]
adaptors/x11/native-image-source-impl-x.cpp [changed mode: 0644->0755]
adaptors/x11/native-image-source-impl.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index fecf43b..3afb87b
@@ -29,8 +29,6 @@
 #include <gl/egl-factory.h>
 #include <adaptor-impl.h>
 #include <render-surface.h>
-#include <trigger-event-factory.h>
-
 
 // Allow this to be encoded and saved:
 #include <bitmap-saver.h>
@@ -90,8 +88,7 @@ NativeImageSource::NativeImageSource( unsigned int width, unsigned int height, D
   mColorDepth( depth ),
   mEglImageKHR( NULL ),
   mEglImageExtensions( NULL ),
-  mSetSource( false ),
-  mNotification( NULL )
+  mSetSource( false )
 {
   DALI_ASSERT_ALWAYS( Adaptor::IsAvailable() );
   EglFactory& eglFactory = Adaptor::GetImplementation( Adaptor::Get() ).GetEGLFactory();
@@ -200,11 +197,6 @@ NativeImageSource::~NativeImageSource()
     if( mTbmSurface != NULL )
     {
       tbm_surface_internal_unref( mTbmSurface );
-
-      if (mNotification != NULL) {
-          TriggerEventInterface* triggerEvent = static_cast<TriggerEventInterface* >(mNotification);
-          triggerEvent->Trigger();
-      }
     }
   }
 }
@@ -214,12 +206,6 @@ Any NativeImageSource::GetNativeImageSource() const
   return Any( mTbmSurface );
 }
 
-
-void NativeImageSource::SetDestructorNotification(void* notification)
-{
-  mNotification = notification;
-}
-
 bool NativeImageSource::GetPixels(std::vector<unsigned char>& pixbuf, unsigned& width, unsigned& height, Pixel::Format& pixelFormat) const
 {
   if( mTbmSurface != NULL )
old mode 100644 (file)
new mode 100755 (executable)
index a724d1e..505d8b2
@@ -63,7 +63,6 @@ public:
    */
   Any GetNativeImageSource() const;
 
-
   /**
    * @copydoc Dali::NativeImageSource::GetPixels()
    */
@@ -156,11 +155,6 @@ public:
    */
   int GetEglImageTextureTarget();
 
-  /**
-   * @copydoc Dali::NativeImageInterface::Extension::SetDestructorNotification((void *notification)
-   */
-  void SetDestructorNotification(void* notification);
-
 private:
 
   /**
@@ -195,7 +189,6 @@ private:
   void* mEglImageKHR;                         ///< From EGL extension
   EglImageExtensions* mEglImageExtensions;    ///< The EGL Image Extensions
   bool mSetSource;
-  void *mNotification;
 };
 
 } // namespace Adaptor
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)