/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
#include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
// INTERNAL INCLUDES
-#include <dali/internal/imaging/common/native-image-source-queue-impl.h>
#include <dali/internal/imaging/common/native-image-source-factory.h>
+#include <dali/internal/imaging/common/native-image-source-queue-impl.h>
namespace Dali
{
-
-NativeImageSourceQueuePtr NativeImageSourceQueue::New( uint32_t width, uint32_t height, ColorDepth depth )
+NativeImageSourceQueuePtr NativeImageSourceQueue::New(uint32_t width, uint32_t height, ColorDepth depth)
{
- Any empty;
- NativeImageSourceQueuePtr image = new NativeImageSourceQueue( width, height, depth, empty );
- if( image->mImpl )
+ Any empty;
+ NativeImageSourceQueuePtr image = new NativeImageSourceQueue(width, height, depth, empty);
+ if(image->mImpl)
{
return image;
}
return nullptr;
}
-NativeImageSourceQueuePtr NativeImageSourceQueue::New( Any nativeImageSourceQueue )
+NativeImageSourceQueuePtr NativeImageSourceQueue::New(Any nativeImageSourceQueue)
{
- NativeImageSourceQueuePtr image = new NativeImageSourceQueue( 0, 0, COLOR_DEPTH_DEFAULT, nativeImageSourceQueue );
- if( image->mImpl )
+ NativeImageSourceQueuePtr image = new NativeImageSourceQueue(0, 0, COLOR_DEPTH_DEFAULT, nativeImageSourceQueue);
+ if(image->mImpl)
{
return image;
}
return mImpl->GetNativeImageSourceQueue();
}
-void NativeImageSourceQueue::SetSize( uint32_t width, uint32_t height )
+void NativeImageSourceQueue::SetSize(uint32_t width, uint32_t height)
+{
+ return mImpl->SetSize(width, height);
+}
+
+void NativeImageSourceQueue::IgnoreSourceImage()
{
- return mImpl->SetSize( width, height );
+ mImpl->IgnoreSourceImage();
}
-bool NativeImageSourceQueue::GlExtensionCreate()
+bool NativeImageSourceQueue::CreateResource()
{
- return mImpl->GlExtensionCreate();
+ return mImpl->CreateResource();
}
-void NativeImageSourceQueue::GlExtensionDestroy()
+void NativeImageSourceQueue::DestroyResource()
{
- mImpl->GlExtensionDestroy();
+ mImpl->DestroyResource();
}
uint32_t NativeImageSourceQueue::TargetTexture()
return mImpl->RequiresBlending();
}
+int NativeImageSourceQueue::GetTextureTarget() const
+{
+ return mImpl->GetTextureTarget();
+}
+
+const char* NativeImageSourceQueue::GetCustomFragmentPrefix() const
+{
+ return mImpl->GetCustomFragmentPrefix();
+}
+
+const char* NativeImageSourceQueue::GetCustomSamplerTypename() const
+{
+ return mImpl->GetCustomSamplerTypename();
+}
+
+Any NativeImageSourceQueue::GetNativeImageHandle() const
+{
+ return mImpl->GetNativeImageHandle();
+}
+
+bool NativeImageSourceQueue::SourceChanged() const
+{
+ return mImpl->SourceChanged();
+}
+
NativeImageInterface::Extension* NativeImageSourceQueue::GetExtension()
{
return mImpl->GetNativeImageInterfaceExtension();
}
-NativeImageSourceQueue::NativeImageSourceQueue( uint32_t width, uint32_t height, ColorDepth depth, Any nativeImageSourceQueue )
+NativeImageSourceQueue::NativeImageSourceQueue(uint32_t width, uint32_t height, ColorDepth depth, Any nativeImageSourceQueue)
{
auto factory = Dali::Internal::Adaptor::GetNativeImageSourceFactory();
- mImpl = factory->CreateNativeImageSourceQueue( width, height, depth, nativeImageSourceQueue );
+ mImpl = factory->CreateNativeImageSourceQueue(width, height, depth, nativeImageSourceQueue);
}
NativeImageSourceQueue::~NativeImageSourceQueue()