X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fimaging%2Fubuntu-x11%2Fnative-image-source-impl-x.cpp;h=54ad2468ce8713140d4adf23f962b72a736c505f;hb=refs%2Fchanges%2F60%2F244560%2F1;hp=c222d3b2f06e6715480f5207a4f88b3687981b00;hpb=58bc59ceee5e124905eaae455a4730bae4ca2143;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.cpp b/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.cpp index c222d3b..54ad246 100755 --- a/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.cpp +++ b/dali/internal/imaging/ubuntu-x11/native-image-source-impl-x.cpp @@ -139,7 +139,8 @@ NativeImageSourceX::~NativeImageSourceX() { if (mOwnPixmap && mPixmap) { - ecore_x_pixmap_free(mPixmap); + // Temporarily disable this as this causes a crash with EFL Version 1.24.0 + //ecore_x_pixmap_free(mPixmap); } } @@ -282,12 +283,12 @@ bool NativeImageSourceX::IsColorDepthSupported( Dali::NativeImageSource::ColorDe return true; } -bool NativeImageSourceX::GlExtensionCreate() +bool NativeImageSourceX::CreateResource() { // if the image existed previously delete it. if (mEglImageKHR != NULL) { - GlExtensionDestroy(); + DestroyResource(); } // casting from an unsigned int to a void *, which should then be cast back @@ -299,7 +300,7 @@ bool NativeImageSourceX::GlExtensionCreate() return mEglImageKHR != NULL; } -void NativeImageSourceX::GlExtensionDestroy() +void NativeImageSourceX::DestroyResource() { mEglImageExtensions->DestroyImageKHR(mEglImageKHR); @@ -350,6 +351,31 @@ int NativeImageSourceX::GetPixelDepth(Dali::NativeImageSource::ColorDepth depth) } } +int NativeImageSourceX::GetTextureTarget() const +{ + return GL_TEXTURE_2D; +} + +const char* NativeImageSourceX::GetCustomFragmentPrefix() const +{ + return nullptr; +} + +const char* NativeImageSourceX::GetCustomSamplerTypename() const +{ + return nullptr; +} + +Any NativeImageSourceX::GetNativeImageHandle() const +{ + return Any(mPixmap); +} + +bool NativeImageSourceX::SourceChanged() const +{ + return false; +} + Ecore_X_Pixmap NativeImageSourceX::GetPixmapFromAny(Any pixmap) const { if (pixmap.Empty())