Fixing non-ecore X11 build
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / x11 / native-image-source-queue-impl-x.cpp
1 /*
2  * Copyright (c) 2024 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/imaging/x11/native-image-source-queue-impl-x.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/integration-api/debug.h>
23 #include <dali/integration-api/gl-defines.h>
24
25 namespace Dali
26 {
27 namespace Internal
28 {
29 namespace Adaptor
30 {
31 NativeImageSourceQueueX* NativeImageSourceQueueX::New(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
32 {
33   NativeImageSourceQueueX* image = new NativeImageSourceQueueX(queueCount, width, height, colorFormat, nativeImageSourceQueue);
34   return image;
35 }
36
37 NativeImageSourceQueueX::NativeImageSourceQueueX(uint32_t queueCount, uint32_t width, uint32_t height, Dali::NativeImageSourceQueue::ColorFormat colorFormat, Any nativeImageSourceQueue)
38 : mQueueCount(queueCount),
39   mWidth(width),
40   mHeight(height)
41 {
42   DALI_LOG_ERROR("NativeImageSourceQueueX::NativeImageSourceQueueX: Not supported\n");
43 }
44
45 NativeImageSourceQueueX::~NativeImageSourceQueueX()
46 {
47 }
48
49 Any NativeImageSourceQueueX::GetNativeImageSourceQueue() const
50 {
51   return Any();
52 }
53
54 void NativeImageSourceQueueX::SetSize(uint32_t width, uint32_t height)
55 {
56   mWidth  = width;
57   mHeight = height;
58 }
59
60 void NativeImageSourceQueueX::IgnoreSourceImage()
61 {
62 }
63
64 bool NativeImageSourceQueueX::CanDequeueBuffer()
65 {
66   return false;
67 }
68
69 uint8_t* NativeImageSourceQueueX::DequeueBuffer(uint32_t& width, uint32_t& height, uint32_t& stride)
70 {
71   return nullptr;
72 }
73
74 bool NativeImageSourceQueueX::EnqueueBuffer(uint8_t* buffer)
75 {
76   return false;
77 }
78
79 void NativeImageSourceQueueX::FreeReleasedBuffers()
80 {
81 }
82
83 bool NativeImageSourceQueueX::CreateResource()
84 {
85   return true;
86 }
87
88 void NativeImageSourceQueueX::DestroyResource()
89 {
90 }
91
92 uint32_t NativeImageSourceQueueX::TargetTexture()
93 {
94   return 0;
95 }
96
97 void NativeImageSourceQueueX::PrepareTexture()
98 {
99 }
100
101 bool NativeImageSourceQueueX::ApplyNativeFragmentShader(std::string& shader)
102 {
103   return false;
104 }
105
106 const char* NativeImageSourceQueueX::GetCustomSamplerTypename() const
107 {
108   return nullptr;
109 }
110
111 int NativeImageSourceQueueX::GetTextureTarget() const
112 {
113   return 0;
114 }
115
116 Any NativeImageSourceQueueX::GetNativeImageHandle() const
117 {
118   return nullptr;
119 }
120
121 bool NativeImageSourceQueueX::SourceChanged() const
122 {
123   return true;
124 }
125
126 } // namespace Adaptor
127
128 } // namespace Internal
129
130 } // namespace Dali