Revert "Binding to create Texture using TbmSurface" 44/242244/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Tue, 25 Aug 2020 07:21:35 +0000 (16:21 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Tue, 25 Aug 2020 07:21:56 +0000 (16:21 +0900)
This reverts commit 8020b8b85123648a3b3ee6c5d5d1b5d8b5d40bbf.

Change-Id: Ia4a8fb18d606ccba704cb275e77e498bd64ceeec

dali-csharp-binder/src/dali_wrap.cpp

index 848b349..5e88da6 100644 (file)
@@ -485,8 +485,6 @@ void SWIG_CSharpException(int code, const char *msg) {
 #include <dali-toolkit/devel-api/controls/video-view/video-view-devel.h>
 
 #include <dali/devel-api/adaptor-framework/native-image-source-devel.h>
-#include <tbm_surface.h>
-
 
 #include <dali-toolkit/devel-api/text/rendering-backend.h>
 
@@ -24124,38 +24122,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Texture_New__SWIG_1(void * jarg1) {
 }
 
 
-SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_new_Texture_TbmSurface(tbm_surface_h tbm_surface) {
-  Dali::NativeImageSourcePtr mNativeImageSrc;
-  Dali::Texture mNativeTexture;
-  void * jresult ;
-
-  if (!tbm_surface) {
-    SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "tbm surface is null", 0);
-    return 0;
-  }
-
-  try {
-    Dali::Any source(tbm_surface);
-    mNativeImageSrc = Dali::NativeImageSource::New(source);
-    mNativeTexture = Dali::Texture::New( *mNativeImageSrc );
-    } catch (std::out_of_range& e) {
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      return 0;
-    } catch (std::exception& e) {
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      return 0;
-    } catch (Dali::DaliException e) {
-      SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      return 0;
-    } catch (...) {
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      return 0;
-  }
-
-  jresult = new Dali::Texture((const Dali::Texture &)mNativeTexture);
-  return (void*)jresult;
-}
-
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Texture__SWIG_0() {
   void * jresult ;
   Dali::Texture *result = 0 ;