3caf0028bad021d2a996d6bde5db046a64a96a7e
[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( unsigned int width, unsigned int 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::SetSource( Any source )
52    */
53   virtual void SetSource( Any source ) = 0;
54
55   /**
56    * destructor
57    */
58   virtual ~NativeImageSourceQueue() = default;
59
60   /**
61    * @copydoc Dali::NativeImageInterface::GlExtensionCreate()
62    */
63   virtual bool GlExtensionCreate() = 0;
64
65   /**
66    * @copydoc Dali::NativeImageInterface::GlExtensionDestroy()
67    */
68   virtual void GlExtensionDestroy() = 0;
69
70   /**
71    * @copydoc Dali::NativeImageInterface::TargetTexture()
72    */
73   virtual unsigned int TargetTexture() = 0;
74
75   /**
76    * @copydoc Dali::NativeImageInterface::PrepareTexture()
77    */
78   virtual void PrepareTexture() = 0;
79
80   /**
81    * @copydoc Dali::NativeImageInterface::GetWidth()
82    */
83   virtual unsigned int GetWidth() const = 0;
84
85   /**
86    * @copydoc Dali::NativeImageInterface::GetHeight()
87    */
88   virtual unsigned int GetHeight() const = 0;
89
90   /**
91    * @copydoc Dali::NativeImageInterface::RequiresBlending()
92    */
93   virtual bool RequiresBlending() const = 0;
94
95   /**
96    * @copydoc Dali::NativeImageInterface::GetExtension()
97    */
98   virtual NativeImageInterface::Extension* GetNativeImageInterfaceExtension() = 0;
99 };
100
101 } // namespace Adaptor
102
103 } // namespace Internal
104
105 } // namespace Dali
106
107 #endif // DALI_INTERNAL_NATIVE_IMAGE_SOURCE_QUEUE_IMPL_H