From b1e2f0fa75dba64f7af69605b69904ff543d093c Mon Sep 17 00:00:00 2001 From: taeyoon Date: Wed, 7 Sep 2016 19:54:52 +0900 Subject: [PATCH] [3.0] Add texture target for OES_EGL_image_external Modify BindTexture part for native image source with OES_EGL_image_external Change-Id: I4a06f28931ee8fe54b86ffe2088d7689686977ad --- adaptors/tizen/native-image-source-impl-tizen.cpp | 6 ++++++ adaptors/tizen/native-image-source-impl.h | 5 +++++ .../src/dali-adaptor/dali-test-suite-utils/test-native-image.h | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/adaptors/tizen/native-image-source-impl-tizen.cpp b/adaptors/tizen/native-image-source-impl-tizen.cpp index 57c8d43..e998ed4 100755 --- a/adaptors/tizen/native-image-source-impl-tizen.cpp +++ b/adaptors/tizen/native-image-source-impl-tizen.cpp @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include +#include #include // INTERNAL INCLUDES @@ -449,6 +450,11 @@ const char* NativeImageSource::GetCustomSamplerTypename() return SAMPLER_TYPE; } +int NativeImageSource::GetEglImageTextureTarget() +{ + return GL_TEXTURE_EXTERNAL_OES; +} + } // namespace Adaptor } // namespace internal diff --git a/adaptors/tizen/native-image-source-impl.h b/adaptors/tizen/native-image-source-impl.h index 3f16926..48876f0 100755 --- a/adaptors/tizen/native-image-source-impl.h +++ b/adaptors/tizen/native-image-source-impl.h @@ -154,6 +154,11 @@ public: */ const char* GetCustomSamplerTypename(); + /** + * @copydoc Dali::NativeImageInterface::Extension::GetEglImageTextureTarget() + */ + int GetEglImageTextureTarget(); + private: /** diff --git a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-native-image.h b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-native-image.h index f361280..30ebca1 100644 --- a/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-native-image.h +++ b/automated-tests/src/dali-adaptor/dali-test-suite-utils/test-native-image.h @@ -19,8 +19,11 @@ */ // INTERNAL INCLUDES + +// EXTERNAL INCLUDES #include #include +#include namespace Dali { @@ -33,6 +36,8 @@ public: inline const char* GetCustomFragmentPreFix(){return "#extension GL_OES_EGL_image_external:require\n";} inline const char* GetCustomSamplerTypename(){return "samplerExternalOES";} + inline int GetEglImageTextureTarget(){return GL_TEXTURE_EXTERNAL_OES;} + }; class DALI_IMPORT_API TestNativeImage : public Dali::NativeImageInterface -- 2.7.4