// EXTERNAL INCLUDES
#include <tbm_surface.h>
#include <dali/devel-api/images/native-image-interface-extension.h>
+#include <dali/public-api/common/dali-vector.h>
// INTERNAL INCLUDES
#include <native-image-source.h>
{
class EglImageExtensions;
+namespace
+{
+ typedef Dali::Vector< void* > EglImageContainer;
+};
+
/**
* Dali internal NativeImageSource.
*/
bool EncodeToFile(const std::string& filename) const;
/**
- * @copydoc Dali::NativeImageSource::SetNativeImageSource( Any nativeImageSource )
+ * @copydoc Dali::NativeImageSource::SetSource( Any source )
*/
- void SetNativeImageSource( Any nativeImageSource );
+ void SetSource( Any source );
+
+ /**
+ * @copydoc Dali::NativeImageSource::IsColorDepthSupported( ColorDepth colorDepth )
+ */
+ bool IsColorDepthSupported( Dali::NativeImageSource::ColorDepth colorDepth );
/**
* destructor
unsigned int TargetTexture();
/**
+ * @copydoc Dali::NativeImageSource::PrepareTexture()
+ */
+ void PrepareTexture();
+
+ /**
* @copydoc Dali::NativeImageSource::GetWidth()
*/
unsigned int GetWidth() const
Dali::NativeImageSource::ColorDepth mColorDepth; ///< color depth of image
void* mEglImageKHR; ///< From EGL extension
EglImageExtensions* mEglImageExtensions; ///< The EGL Image Extensions
+ bool mSetSource;
+ EglImageContainer mEglImageKHRContainer;
};
} // namespace Adaptor