#define DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H
/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Dali
{
-
namespace Internal
{
-
namespace Adaptor
{
-
/**
* Dali internal NativeImageSourceQueue.
*/
class NativeImageSourceQueue
{
public:
-
/**
* @copydoc Dali::NativeImageSourceQueue::New()
*/
- static NativeImageSourceQueue* New( unsigned int width, unsigned int height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue );
+ static NativeImageSourceQueue* New(uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue);
/**
* @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
virtual Any GetNativeImageSourceQueue() const = 0;
/**
- * @copydoc Dali::NativeImageSourceQueue::SetSource( Any source )
+ * @copydoc Dali::NativeImageSourceQueue::SetSize
*/
- virtual void SetSource( Any source ) = 0;
+ virtual void SetSize(uint32_t width, uint32_t height) = 0;
+
+ /**
+ * @copydoc Dali::NativeImageSourceQueue::IgnoreSourceImage
+ */
+ virtual void IgnoreSourceImage() = 0;
/**
* destructor
virtual ~NativeImageSourceQueue() = default;
/**
- * @copydoc Dali::NativeImageInterface::GlExtensionCreate()
+ * @copydoc Dali::NativeImageInterface::CreateResource()
*/
- virtual bool GlExtensionCreate() = 0;
+ virtual bool CreateResource() = 0;
/**
- * @copydoc Dali::NativeImageInterface::GlExtensionDestroy()
+ * @copydoc Dali::NativeImageInterface::DestroyResource()
*/
- virtual void GlExtensionDestroy() = 0;
+ virtual void DestroyResource() = 0;
/**
* @copydoc Dali::NativeImageInterface::TargetTexture()
*/
- virtual unsigned int TargetTexture() = 0;
+ virtual uint32_t TargetTexture() = 0;
/**
* @copydoc Dali::NativeImageInterface::PrepareTexture()
/**
* @copydoc Dali::NativeImageInterface::GetWidth()
*/
- virtual unsigned int GetWidth() const = 0;
+ virtual uint32_t GetWidth() const = 0;
/**
* @copydoc Dali::NativeImageInterface::GetHeight()
*/
- virtual unsigned int GetHeight() const = 0;
+ virtual uint32_t GetHeight() const = 0;
/**
* @copydoc Dali::NativeImageInterface::RequiresBlending()
virtual bool RequiresBlending() const = 0;
/**
+ * @copydoc Dali::NativeImageInterface::GetTextureTarget()
+ */
+ virtual int GetTextureTarget() const = 0;
+
+ /**
+ * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
+ */
+ virtual const char* GetCustomFragmentPrefix() const = 0;
+
+ /**
+ * @copydoc Dali::NativeImageInterface::GetCustomSamplerTypename()
+ */
+ virtual const char* GetCustomSamplerTypename() const = 0;
+
+ /**
+ * @copydoc Dali::NativeImageInterface::GetNativeImageHandle()
+ */
+ virtual Any GetNativeImageHandle() const = 0;
+
+ /**
+ * @copydoc Dali::NativeImageInterface::SourceChanged()
+ */
+ virtual bool SourceChanged() const = 0;
+
+ /**
* @copydoc Dali::NativeImageInterface::GetExtension()
*/
virtual NativeImageInterface::Extension* GetNativeImageInterfaceExtension() = 0;