mCallStack.PushCall("GetTextureTarget", "");
return GL_TEXTURE_EXTERNAL_OES;
};
- inline virtual const char* GetCustomFragmentPrefix() const
- {
- mCallStack.PushCall("GetCustomFragmentPrefix", "");
- return "#extension GL_OES_EGL_image_external:require\n";
- };
inline virtual bool ApplyNativeFragmentShader(std::string& shader)
{
mCallStack.PushCall("ApplyNativeFragmentShader", "");
return mImpl->GetTextureTarget();
}
-const char* NativeImageSourceQueue::GetCustomFragmentPrefix() const
-{
- return mImpl->GetCustomFragmentPrefix();
-}
-
bool NativeImageSourceQueue::ApplyNativeFragmentShader(std::string& shader)
{
return mImpl->ApplyNativeFragmentShader(shader);
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
return GL_TEXTURE_2D;
}
-const char* NativeImageSourceAndroid::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceAndroid::ApplyNativeFragmentShader(std::string& shader)
{
return false;
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageSource::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageSource::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
{
}
-const char* NativeImageSourceQueueAndroid::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceQueueAndroid::ApplyNativeFragmentShader(std::string& shader)
{
return false;
}
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
return 0;
}
-const char* NativeBitmapBuffer::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeBitmapBuffer::ApplyNativeFragmentShader(std::string& shader)
{
return false;
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
virtual int GetTextureTarget() const = 0;
/**
- * @copydoc Dali::NativeImageSource::GetCustomFragmentPrefix()
- */
- virtual const char* GetCustomFragmentPrefix() const = 0;
-
- /**
* @copydoc Dali::NativeImageSource::ApplyNativeFragmentShader()
*/
virtual bool ApplyNativeFragmentShader(std::string& shader) = 0;
virtual int GetTextureTarget() const = 0;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- virtual const char* GetCustomFragmentPrefix() const = 0;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
virtual bool ApplyNativeFragmentShader(std::string& shader) = 0;
{
}
-const char* NativeImageSourceCocoa::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceCocoa::ApplyNativeFragmentShader(std::string& shader)
{
return false;
bool RequiresBlending() const override;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
{
namespace
{
-const char* FRAGMENT_PREFIX = "#extension GL_OES_EGL_image_external:require\n";
const char* SAMPLER_TYPE = "samplerExternalOES";
// clang-format off
}
}
-const char* NativeImageSourceTizen::GetCustomFragmentPrefix() const
-{
- return FRAGMENT_PREFIX;
-}
-
bool NativeImageSourceTizen::ApplyNativeFragmentShader(std::string& shader)
{
return mEglGraphics->ApplyNativeFragmentShader(shader, SAMPLER_TYPE);
}
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader(std::string& shader)
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
{
#define TBM_SURFACE_QUEUE_SIZE 3
-const char* FRAGMENT_PREFIX = "#extension GL_OES_EGL_image_external:require\n";
const char* SAMPLER_TYPE = "samplerExternalOES";
// clang-format off
}
}
-const char* NativeImageSourceQueueTizen::GetCustomFragmentPrefix() const
-{
- return FRAGMENT_PREFIX;
-}
-
bool NativeImageSourceQueueTizen::ApplyNativeFragmentShader(std::string& shader)
{
return mEglGraphics->ApplyNativeFragmentShader(shader, SAMPLER_TYPE);
}
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
return GL_TEXTURE_2D;
}
-const char* NativeImageSourceX::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceX::ApplyNativeFragmentShader(std::string& shader)
{
return false;
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageSource::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageSource::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
{
}
-const char* NativeImageSourceQueueX::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceQueueX::ApplyNativeFragmentShader(std::string& shader)
{
return false;
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
{
}
-const char* NativeImageSourceWin::GetCustomFragmentPrefix() const
-{
- return nullptr;
-}
-
bool NativeImageSourceWin::ApplyNativeFragmentShader(std::string& shader)
{
return false;
}
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;
return mImpl->GetTextureTarget();
}
-const char* NativeImageSource::GetCustomFragmentPrefix() const
-{
- return mImpl->GetCustomFragmentPrefix();
-}
-
bool NativeImageSource::ApplyNativeFragmentShader(std::string& shader)
{
return mImpl->ApplyNativeFragmentShader(shader);
int GetTextureTarget() const override;
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
- */
- const char* GetCustomFragmentPrefix() const override;
-
- /**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()
*/
bool ApplyNativeFragmentShader(std::string& shader) override;