1 #ifndef DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H
2 #define DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H
5 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
34 * Dali internal NativeImageSourceQueue.
36 class NativeImageSourceQueue
41 * @copydoc Dali::NativeImageSourceQueue::New()
43 static NativeImageSourceQueue* New( uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue );
46 * @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
48 virtual Any GetNativeImageSourceQueue() const = 0;
51 * @copydoc Dali::NativeImageSourceQueue::SetSize
53 virtual void SetSize( uint32_t width, uint32_t height ) = 0;
56 * @copydoc Dali::NativeImageSourceQueue::IgnoreSourceImage
58 virtual void IgnoreSourceImage() = 0;
63 virtual ~NativeImageSourceQueue() = default;
66 * @copydoc Dali::NativeImageInterface::CreateResource()
68 virtual bool CreateResource() = 0;
71 * @copydoc Dali::NativeImageInterface::DestroyResource()
73 virtual void DestroyResource() = 0;
76 * @copydoc Dali::NativeImageInterface::TargetTexture()
78 virtual uint32_t TargetTexture() = 0;
81 * @copydoc Dali::NativeImageInterface::PrepareTexture()
83 virtual void PrepareTexture() = 0;
86 * @copydoc Dali::NativeImageInterface::GetWidth()
88 virtual uint32_t GetWidth() const = 0;
91 * @copydoc Dali::NativeImageInterface::GetHeight()
93 virtual uint32_t GetHeight() const = 0;
96 * @copydoc Dali::NativeImageInterface::RequiresBlending()
98 virtual bool RequiresBlending() const = 0;
101 * @copydoc Dali::NativeImageInterface::GetTextureTarget()
103 virtual int GetTextureTarget() const = 0;
106 * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
108 virtual const char* GetCustomFragmentPrefix() const = 0;
111 * @copydoc Dali::NativeImageInterface::GetCustomSamplerTypename()
113 virtual const char* GetCustomSamplerTypename() const = 0;
116 * @copydoc Dali::NativeImageInterface::GetNativeImageHandle()
118 virtual Any GetNativeImageHandle() const = 0;
121 * @copydoc Dali::NativeImageInterface::SourceChanged()
123 virtual bool SourceChanged() const = 0;
126 * @copydoc Dali::NativeImageInterface::GetExtension()
128 virtual NativeImageInterface::Extension* GetNativeImageInterfaceExtension() = 0;
131 } // namespace Adaptor
133 } // namespace Internal
137 #endif // DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H