X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-native-image-source.cpp;h=d2be2d73208a97155d776c6e91948c153db29644;hb=abc8459e18c5a7f8730c9493885fd067126520cb;hp=2277014fca3759ce06aea7dd788aa8819af81e53;hpb=54762b21b34ed298bbb781a5895fc6c4c1ef37b6;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-native-image-source.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-native-image-source.cpp index 2277014..d2be2d7 100755 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-native-image-source.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-native-image-source.cpp @@ -18,12 +18,20 @@ // CLASS HEADER #include +// INTERNAL INCLUDES +#include "test-native-image-source.h" + // EXTERNAL INCLUDES #include namespace Dali { +const char* NativeImageSourceTest::GetCustomFragmentPrefix() +{ + return "#extension GL_OES_EGL_image_external:require\n"; +} + NativeImageSourcePtr NativeImageSource::New( unsigned int width, unsigned int height, ColorDepth depth ) { Any empty; @@ -62,12 +70,12 @@ bool NativeImageSource::IsColorDepthSupported( ColorDepth colorDepth ) return false; } -bool NativeImageSource::GlExtensionCreate() +bool NativeImageSource::CreateResource() { return false; } -void NativeImageSource::GlExtensionDestroy() +void NativeImageSource::DestroyResource() { } @@ -95,6 +103,32 @@ bool NativeImageSource::RequiresBlending() const return false; } +int NativeImageSource::GetTextureTarget() const +{ + return 0; +} + +bool NativeImageSource::ApplyNativeFragmentShader(std::string& shader) +{ + shader = Dali::NativeImageSourceTest::GetCustomFragmentPrefix() + shader; + return true; +} + +const char* NativeImageSource::GetCustomSamplerTypename() const +{ + return ""; +} + +Any NativeImageSource::GetNativeImageHandle() const +{ + return nullptr; +} + +bool NativeImageSource::SourceChanged() const +{ + return false; +} + NativeImageInterface::Extension* NativeImageSource::GetExtension() { return NULL;