From: Heeyong Song Date: Tue, 30 May 2023 03:12:13 +0000 (+0900) Subject: Add EnableBackBuffer to NativeImageSource X-Git-Tag: dali_2.2.31~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64bf6a4669a99ff4896d1f201afb3e9533581c6b;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add EnableBackBuffer to NativeImageSource Change-Id: If16357f5410159cdbb7554b1a12c4e05338ab121 --- diff --git a/dali-csharp-binder/src/dali-wrap.cpp b/dali-csharp-binder/src/dali-wrap.cpp index ad8861f..067ed27 100644 --- a/dali-csharp-binder/src/dali-wrap.cpp +++ b/dali-csharp-binder/src/dali-wrap.cpp @@ -52586,9 +52586,9 @@ SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageSource_AcquireBuffer(void* j { void* jresult; NativeImageSource* arg1 = (NativeImageSource*)jarg1; - uint16_t* arg2 = (uint16_t*)(jarg2); - uint16_t* arg3 = (uint16_t*)(jarg3); - uint16_t* arg4 = (uint16_t*)(jarg4); + uint32_t* arg2 = (uint32_t*)(jarg2); + uint32_t* arg3 = (uint32_t*)(jarg3); + uint32_t* arg4 = (uint32_t*)(jarg4); { try { jresult = (void *)Dali::DevelNativeImageSource::AcquireBuffer( *arg1, *arg2, *arg3, *arg4 ); @@ -52624,7 +52624,7 @@ SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_NativeImageSource_ReleaseBuffer(void* ja { try { - jresult = Dali::DevelNativeImageSource::ReleaseBuffer( *arg1 ); + jresult = Dali::DevelNativeImageSource::ReleaseBuffer(*arg1, Rect{}); } catch (std::out_of_range & e) { { @@ -52692,6 +52692,24 @@ SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_NativeImageSource_GenerateUrl(void* han return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_NativeImageSource_EnableBackBuffer(void* nativeImageHandle, bool enable) +{ + NativeImageSource* nativeImage = static_cast(nativeImageHandle); + + if(!nativeImage) + { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "nativeImageHandle is null", 0); + return; + } + { + try + { + Dali::DevelNativeImageSource::EnableBackBuffer(*nativeImage, enable); + } + CALL_CATCH_EXCEPTION(); + } +} + SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ImageUrl(void* jarg1) { Dali::Toolkit::ImageUrl* imageUrl = (Dali::Toolkit::ImageUrl*) 0;