Add a method to NativeImageSourceQueue
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / native-image-source-queue-impl.h
1 #ifndef DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H
2 #define DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H
3
4 /*
5  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // INTERNAL INCLUDES
22 #include <dali/devel-api/adaptor-framework/native-image-source-queue.h>
23
24 namespace Dali
25 {
26
27 namespace Internal
28 {
29
30 namespace Adaptor
31 {
32
33 /**
34  * Dali internal NativeImageSourceQueue.
35  */
36 class NativeImageSourceQueue
37 {
38 public:
39
40   /**
41    * @copydoc Dali::NativeImageSourceQueue::New()
42    */
43   static NativeImageSourceQueue* New( uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorDepth depth, Any nativeImageSourceQueue );
44
45   /**
46    * @copydoc Dali::NativeImageSourceQueue::GetNativeImageSourceQueue()
47    */
48   virtual Any GetNativeImageSourceQueue() const = 0;
49
50   /**
51    * @copydoc Dali::NativeImageSourceQueue::SetSize
52    */
53   virtual void SetSize( uint32_t width, uint32_t height ) = 0;
54
55   /**
56    * @copydoc Dali::NativeImageSourceQueue::IgnoreSourceImage
57    */
58   virtual void IgnoreSourceImage() = 0;
59
60   /**
61    * destructor
62    */
63   virtual ~NativeImageSourceQueue() = default;
64
65   /**
66    * @copydoc Dali::NativeImageInterface::GlExtensionCreate()
67    */
68   virtual bool GlExtensionCreate() = 0;
69
70   /**
71    * @copydoc Dali::NativeImageInterface::GlExtensionDestroy()
72    */
73   virtual void GlExtensionDestroy() = 0;
74
75   /**
76    * @copydoc Dali::NativeImageInterface::TargetTexture()
77    */
78   virtual uint32_t TargetTexture() = 0;
79
80   /**
81    * @copydoc Dali::NativeImageInterface::PrepareTexture()
82    */
83   virtual void PrepareTexture() = 0;
84
85   /**
86    * @copydoc Dali::NativeImageInterface::GetWidth()
87    */
88   virtual uint32_t GetWidth() const = 0;
89
90   /**
91    * @copydoc Dali::NativeImageInterface::GetHeight()
92    */
93   virtual uint32_t GetHeight() const = 0;
94
95   /**
96    * @copydoc Dali::NativeImageInterface::RequiresBlending()
97    */
98   virtual bool RequiresBlending() const = 0;
99
100   /**
101    * @copydoc Dali::NativeImageInterface::GetExtension()
102    */
103   virtual NativeImageInterface::Extension* GetNativeImageInterfaceExtension() = 0;
104 };
105
106 } // namespace Adaptor
107
108 } // namespace Internal
109
110 } // namespace Dali
111
112 #endif // DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H